/* TryAI.im Styles
   Friendly, approachable design for non-technical users
   Typography: Nunito (rounded, readable)
   Colors: Warm teal with friendly coral accents
*/

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors - Warm & Friendly */
    --primary-color: #4a9b9f;        /* Warm teal - softer than LEMA */
    --primary-dark: #3d8387;         /* Darker teal for hover */
    --primary-light: #e8f4f5;        /* Light teal for backgrounds */

    --accent-color: #e07b5c;         /* Friendly coral */
    --accent-dark: #c96a4d;          /* Darker coral for hover */
    --accent-light: #fdf3f0;         /* Light coral for backgrounds */

    /* CTA Colors */
    --cta-color: #e07b5c;            /* Coral for CTAs */
    --cta-hover: #c96a4d;            /* Darker coral hover */

    /* Text Colors */
    --text-primary: #2d3748;         /* Soft dark gray - easier on eyes */
    --text-secondary: #5a6778;       /* Medium gray */
    --text-light: #8896a6;           /* Light gray */

    /* Background Colors */
    --bg-white: #ffffff;
    --bg-light: #f8fafb;             /* Very light gray-blue */
    --bg-accent: #fff9f7;            /* Very light coral */

    /* UI Colors */
    --border-color: #e2e8f0;
    --shadow-color: rgba(45, 55, 72, 0.1);
    --shadow-hover: rgba(45, 55, 72, 0.15);

    /* Typography */
    --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 5rem;

    /* Border Radius - Rounded for friendly feel */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;

    /* Container */
    --container-max: 1140px;
    --container-padding: 1.5rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

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

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--space-sm);
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--cta-hover);
    border-color: var(--cta-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(224, 123, 92, 0.3);
}

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

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

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

.btn-nav {
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
}

/* ===== Header & Navigation ===== */
.header {
    background: var(--bg-white);
    padding: var(--space-sm) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo:hover {
    color: var(--primary-color);
}

.logo-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.logo-hand {
    font-size: 2rem;
    line-height: 1;
}

.logo-ai {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-right: auto;
    margin-left: 0.75rem;
}

.lema-link {
    color: var(--text-primary);
    font-weight: 600;
}

.lema-link:hover {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    list-style: none;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.5rem 0;
}

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

/* Nav CTA button - must come after .nav-menu a to override */
.nav-menu a.btn.btn-primary {
    background: var(--cta-color) !important;
    color: var(--bg-white) !important;
    border-color: var(--cta-color) !important;
    padding: 0.75rem 1.75rem;
}

.nav-menu a.btn.btn-primary:hover {
    background: var(--cta-hover) !important;
    border-color: var(--cta-hover) !important;
    color: var(--bg-white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-white) 100%);
    padding: var(--space-xxl) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
}

.hero-note {
    font-size: 0.9375rem;
    color: var(--text-light);
}

/* ===== Sections ===== */
.section {
    padding: var(--space-xxl) 0;
}

.section-light {
    background: var(--bg-light);
}

.section-accent {
    background: var(--accent-light);
}

.section-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    text-align: center;
}

.section-cta h2,
.section-cta p {
    color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== Content Cards ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.content-card {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow-hover);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.content-card h3 {
    margin-bottom: var(--space-xs);
}

.content-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== Benefits Grid ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.benefit-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit-content h3 {
    margin-bottom: var(--space-xs);
}

.benefit-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== Steps Grid ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.step-item {
    padding: var(--space-md);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: var(--space-sm);
}

.step-item h3 {
    margin-bottom: var(--space-xs);
}

.step-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.feature-item {
    background: var(--bg-white);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    text-align: center;
}

.feature-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--bg-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.feature-item h3 {
    margin-bottom: var(--space-xs);
}

.feature-item p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 1rem;
}

/* ===== CTA Section ===== */
.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: var(--space-sm);
}

.cta-content p {
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* ===== FAQ Section ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    box-shadow: 0 2px 10px var(--shadow-color);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 var(--space-md) var(--space-md);
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: var(--bg-light);
    padding: var(--space-xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.footer-brand .logo {
    color: var(--bg-white);
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--text-light);
    font-size: 1rem;
}

.footer-links h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-xs);
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.footer-links a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-xs);
}

.footer-bottom a {
    color: var(--primary-light);
}

.footer-bottom a:hover {
    color: var(--bg-white);
}

.footer-location {
    font-size: 0.8125rem;
}

/* ===== Mobile Styles ===== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-brand {
        display: none;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: var(--space-md);
        box-shadow: 0 10px 30px var(--shadow-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: var(--space-sm);
    }

    .nav-menu .btn-nav {
        margin-top: var(--space-sm);
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.875rem;
    }

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

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
}
