/* Atlas Cross-Border — Mobile-First CSS */
/* Scene: Brazilian entrepreneur, home office, daytime. Light theme. */
/* Color strategy: Committed — terracotta carries identity */

:root {
    --terra: oklch(0.55 0.14 25);
    --terra-light: oklch(0.65 0.12 25);
    --terra-soft: oklch(0.92 0.03 25);
    --terra-bg: oklch(0.97 0.008 25);
    --ink: oklch(0.22 0.01 25);
    --ink-secondary: oklch(0.4 0.008 25);
    --ink-muted: oklch(0.44 0.006 25);
    --surface: oklch(0.99 0.003 25);
    --surface-raised: oklch(0.96 0.006 60);
    --border: oklch(0.88 0.01 25);
    --border-light: oklch(0.93 0.008 25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Figtree', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: var(--ink-secondary);
    line-height: 1.65;
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

/* --- Header --- */
.site-header {
    position: fixed; top: 0; width: 100%;
    background: oklch(0.99 0.003 25 / 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    z-index: 100;
    height: 3.5rem;
}

.site-header nav {
    max-width: 68rem; margin: 0 auto;
    padding: 0 1rem; height: 100%;
    display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo span {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 0.9rem; font-weight: 700; color: var(--ink);
}

.header-cta {
    padding: 0.55rem 1rem;
    background: var(--terra);
    color: oklch(0.98 0.005 25);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    min-height: 48px;
    display: flex; align-items: center;
    transition: background 0.2s;
}
.header-cta:hover { background: var(--terra-light); color: oklch(0.98 0.005 25); }

/* --- Shared image style --- */
.section-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.9rem 1.75rem;
    min-height: 48px;
    background: var(--terra);
    color: oklch(0.98 0.005 25);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--terra-light); color: oklch(0.98 0.005 25); }
.btn-primary:active { transform: scale(0.98); }

/* --- Hero --- */
.hero {
    padding: 5rem 1rem 2.5rem;
    background: var(--terra-bg);
    display: flex;
    flex-direction: column-reverse;
}

.hero .section-img {
    margin-top: 1.5rem;
    max-height: 220px;
    object-fit: cover;
}

.hero-content { max-width: 38rem; }

.kicker {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--terra);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.18;
}

.subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--ink-secondary);
    line-height: 1.7;
}

.hero .btn-primary { margin-top: 1.5rem; width: 100%; }

.note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--ink-muted);
    text-align: center;
}

/* --- Problem --- */
.problem {
    padding: 3rem 1rem;
}

.problem-content { margin-bottom: 1.5rem; }

.problem h2 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.problem p {
    font-size: 0.95rem;
    color: var(--ink-secondary);
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

/* --- Steps --- */
.steps {
    padding: 3rem 1rem;
    background: var(--surface-raised);
}

.steps > h2 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 2rem;
}

.step {
    margin-bottom: 2.5rem;
}

.step .section-img {
    margin-bottom: 1.25rem;
}

.step-num {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--terra);
    display: block;
    margin-bottom: 0.4rem;
}

.step h3 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--ink-secondary);
    line-height: 1.7;
}

/* --- For who --- */
.for-who {
    padding: 3rem 1rem;
}

.for-who h2 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.for-who-list {
    list-style: none;
    display: flex; flex-direction: column; gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.for-who-list li {
    padding: 1rem 1.1rem;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--ink-secondary);
    line-height: 1.5;
    position: relative;
    padding-left: 2.5rem;
}

.for-who-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--terra);
    font-weight: 700;
}

.for-who-not {
    font-size: 0.82rem;
    color: var(--ink-muted);
    padding: 1rem;
    background: oklch(0.95 0.005 25);
    border-radius: 6px;
    line-height: 1.6;
}
.for-who-not strong { color: var(--ink-secondary); }

/* --- Stories --- */
.stories {
    padding: 3rem 1rem;
    background: var(--terra-bg);
}

.stories .section-img { margin-bottom: 1.5rem; }

.stories h2 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.story-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    margin-bottom: 1rem;
}

.story-card blockquote p {
    font-size: 0.9rem;
    color: var(--ink-secondary);
    line-height: 1.75;
    font-style: normal;
}

.story-author {
    display: flex; align-items: center; gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.author-initials {
    width: 2.2rem; height: 2.2rem;
    background: var(--terra);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.author-name { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.author-detail { font-size: 0.72rem; color: var(--ink-muted); margin-top: 0.1rem; }

/* --- FAQ --- */
.faq {
    padding: 3rem 1rem;
    background: var(--surface-raised);
}

.faq h2 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--border); }

.faq-item summary {
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink);
    list-style: none;
    padding-right: 1.5rem;
    position: relative;
    min-height: 48px;
    display: flex; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 50%; transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--ink-muted);
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--ink-secondary);
    line-height: 1.7;
    padding-right: 1.5rem;
    padding-bottom: 0.5rem;
}

/* --- Contact --- */
.contact {
    padding: 3rem 1rem;
    background: var(--terra-bg);
}

.contact .section-img { margin-bottom: 1.5rem; }

.contact-content h2 {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.contact-content > p {
    font-size: 0.9rem;
    color: var(--ink-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact-form {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-header {
    font-family: 'Bricolage Grotesque', system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
}

.form-group { margin-bottom: 0.9rem; }
.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--ink-secondary);
    margin-bottom: 0.3rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    min-height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--ink);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--terra);
    box-shadow: 0 0 0 2px oklch(0.55 0.14 25 / 0.1);
}

.form-consent {
    display: flex; align-items: flex-start; gap: 0.5rem;
    margin: 1rem 0;
}
.form-consent input[type="checkbox"] {
    margin-top: 2px; width: 1.25rem; height: 1.25rem;
    accent-color: var(--terra);
    flex-shrink: 0;
}
.form-consent label { font-size: 0.72rem; color: var(--ink-muted); line-height: 1.5; }
.form-consent a { text-decoration: underline; }
.form-consent a:hover { color: var(--ink); }

.form-submit { width: 100%; margin-top: 0.5rem; }

.contact-direct {
    margin-top: 1.5rem;
    text-align: center;
}
.contact-direct .btn-primary { width: 100%; }
.contact-direct-note {
    margin-top: 0.5rem;
    font-size: 0.72rem;
    color: var(--ink-muted);
}

/* --- Footer --- */
.site-footer {
    background: var(--ink);
    color: oklch(0.7 0.005 25);
    padding: 2rem 1rem 1.5rem;
}

.footer-disclaimer {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid oklch(0.35 0.01 25);
}
.footer-disclaimer p {
    font-size: 0.7rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}
.footer-disclaimer strong { color: oklch(0.8 0.005 25); }

.footer-grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.footer-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: oklch(0.8 0.005 25);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.footer-grid p { font-size: 0.72rem; line-height: 1.7; }
.footer-grid a { text-decoration: underline; display: inline-block; padding: 4px 0; min-height: 48px; line-height: 40px; }
.footer-grid a:hover { color: oklch(0.9 0.005 25); }

.footer-bottom {
    border-top: 1px solid oklch(0.35 0.01 25);
    padding-top: 1rem;
    text-align: center;
}
.footer-bottom p { font-size: 0.68rem; }

/* --- Desktop enhancements --- */
@media (min-width: 768px) {
    .hero {
        padding: 7rem 2rem 4rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        max-width: 68rem;
        margin: 0 auto;
        flex-direction: unset;
    }
    .hero .section-img { margin-top: 0; max-height: none; order: 2; }
    .hero-content { order: 1; }
    .hero h1 { font-size: 2.5rem; }
    .hero .btn-primary { width: auto; }
    .note { text-align: left; }

    .problem {
        padding: 4rem 2rem;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
        max-width: 68rem;
        margin: 0 auto;
    }
    .problem-content { margin-bottom: 0; }

    .steps {
        padding: 4rem 2rem;
        max-width: 68rem;
        margin: 0 auto;
    }
    .step {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 2.5rem;
        align-items: center;
    }
    .step:nth-child(odd) .section-img { order: 2; }
    .step .section-img { margin-bottom: 0; }

    .for-who {
        padding: 4rem 2rem;
        max-width: 50rem;
        margin: 0 auto;
    }
    .for-who-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

    .stories {
        padding: 4rem 2rem;
        max-width: 68rem;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        align-items: start;
    }
    .stories .section-img { grid-row: 1 / 4; }
    .stories h2 { grid-column: 2; }

    .faq {
        padding: 4rem 2rem;
        max-width: 50rem;
        margin: 0 auto;
    }

    .contact {
        padding: 4rem 2rem;
        display: grid;
        grid-template-columns: 1fr 1.1fr;
        gap: 3rem;
        align-items: start;
        max-width: 68rem;
        margin: 0 auto;
    }
    .contact .section-img { margin-bottom: 0; }
    .contact-direct .btn-primary { width: auto; }

    .site-footer { padding: 2.5rem 2rem 1.5rem; }
    .footer-inner { max-width: 68rem; margin: 0 auto; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-bottom { text-align: left; display: flex; justify-content: space-between; }
}

/* --- Focus states --- */
.btn-primary:focus-visible,
.header-cta:focus-visible {
    outline: 3px solid var(--terra);
    outline-offset: 2px;
}
a:focus-visible {
    outline: 2px solid var(--terra);
    outline-offset: 2px;
    border-radius: 2px;
}
input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 2px solid var(--terra);
    outline-offset: 1px;
}

/* --- Utility --- */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}
