/* ==========================================================================
   SmartContábil — Base: reset, tipografia (Poppins + Inter) e utilitários
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    color: var(--sc-text);
    background: var(--sc-ice);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.18;
    letter-spacing: -.015em;
    color: var(--sc-text);
    margin: 0;
}

h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

p { margin: 0; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button, input, select, textarea {
    font-family: var(--font-body);
    font-size: 14px;
}

small { font-size: 12px; }

strong, b { font-weight: 600; }

img, svg { vertical-align: middle; }

table { border-collapse: collapse; }

hr {
    border: 0;
    border-top: 1px solid var(--sc-border);
    margin: var(--space-6) 0;
}

/* ---- Foco acessível ---- */
:focus-visible {
    outline: 2px solid var(--sc-green-700);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}

::selection {
    background: rgba(134, 210, 191, .38);
    color: var(--sc-graphite-900);
}

/* ---- Scrollbar discreta ---- */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--sc-graphite-300) transparent;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sc-graphite-300); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--sc-graphite-500); }

/* ---- Marca ---- */
.brand,
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    line-height: 1;
}

.brand-symbol { flex: 0 0 auto; display: block; }

.brand-wordmark {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-display);
    line-height: 1.02;
    letter-spacing: -.01em;
}

.brand-wordmark b,
.brand-wordmark i {
    font-style: normal;
    font-weight: 700;
    font-size: calc(var(--brand-size, 38px) * .42);
}

.brand-wordmark b { color: var(--sc-graphite-900); }
.brand-wordmark i { color: var(--sc-green-700); }

.brand-lockup-inverted .brand-wordmark b { color: var(--sc-white); }
.brand-lockup-inverted .brand-wordmark i { color: var(--sc-mint-500); }

/* Marca d'água institucional (grafismo de apoio, sempre discreta) */
.brand-watermark {
    position: absolute;
    right: -6%;
    bottom: -12%;
    line-height: 0;
    opacity: .06;
    pointer-events: none;
    z-index: 0;
}

.brand-graphism {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ---- Utilitários ---- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sc-green-700);
}

.tabular-nums,
.num {
    font-variant-numeric: tabular-nums;
}

.muted { color: var(--sc-text-muted); }
.text-right { text-align: right; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Movimento reduzido ---- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}
