/**
 * Sys Auto — páginas públicas (legal, integrações, privacidade)
 * Paleta alinhada à home www.sysauto.com.br — cream + laranja
 */
:root {
    --cream: #f2e18f;
    --background: #ffffff;
    --surface: #ffffff;
    --surface-muted: #f9fafb;
    --surface-hover: #f3f4f6;

    --text: #374151;
    --text-inverse: #ffffff;
    --inactive: #6b7280;
    --subtle: #9ca3af;

    --claude: #F48C06;
    --claude-hover: #e07d00;
    --claude-soft: rgba(244, 140, 6, 0.14);
    --claude-text: #F48C06;

    --success: #16a34a;
    --error: #dc2626;
    --warning: #d97706;

    --border: rgba(55, 65, 81, 0.12);
    --border-strong: rgba(55, 65, 81, 0.2);
    --selection-bg: rgba(244, 140, 6, 0.25);

    --shadow: 0 1px 3px rgba(55, 65, 81, 0.06), 0 4px 14px rgba(55, 65, 81, 0.06);
    --shadow-lg: 0 8px 28px rgba(55, 65, 81, 0.1);

    --footer-bg: #252641;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-pill: 999px;

    --page-width: min(90vw, 1280px);
    --sidebar-width: 240px;

    --font-sans: 'Poppins', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif: var(--font-sans);

    --scrollbar-size: 8px;
    --scrollbar-track: transparent;
    --scrollbar-thumb: rgba(55, 65, 81, 0.25);
    --scrollbar-thumb-hover: rgba(55, 65, 81, 0.4);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.doc-sidebar::-webkit-scrollbar,
.prose pre::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.doc-sidebar::-webkit-scrollbar-track,
.prose pre::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.doc-sidebar::-webkit-scrollbar-thumb,
.prose pre::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: var(--radius-pill);
    border: 2px solid var(--background);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.doc-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(15px, 1.6vw, 16px);
    line-height: 1.65;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

::selection {
    background: var(--selection-bg);
    color: var(--text);
}

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

a:hover {
    color: var(--claude-hover);
    text-decoration: underline;
}

/* ── Shell 90% ── */
.page-shell {
    width: var(--page-width);
    max-width: var(--page-width);
    margin-left: auto;
    margin-right: auto;
}

/* ── Top band (cream + diagonal, igual home) ── */
.site-top {
    background: var(--cream);
    color: var(--text);
    position: relative;
}

.site-top--compact .header-inner {
    padding-bottom: 0.25rem;
}

.site-top-divider {
    line-height: 0;
    color: var(--background);
    position: relative;
    z-index: 2;
    margin-top: -1px;
}

.site-top-divider svg {
    display: block;
    width: 100%;
    height: clamp(3rem, 8vw, 7.5rem);
}

/* ── Header ── */
.site-header {
    background: transparent;
    color: var(--text);
    border-bottom: none;
}

.header-inner {
    width: var(--page-width);
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0.85rem 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: transparent;
}

.site-header--compact .header-inner {
    padding: 0.65rem 0;
}

.site-header--compact .brand-logo {
    width: 210px;
    height: auto;
    max-width: min(210px, 55vw);
}

.brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    display: block;
    width: 210px;
    height: auto;
    max-width: min(210px, 55vw);
    object-fit: contain;
}

.header-nav {
    display: flex;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 500;
    flex-wrap: wrap;
    align-items: center;
}

.header-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.header-nav a:hover {
    color: var(--claude);
    background: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

.hero {
    width: var(--page-width);
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0.5rem 0 1.25rem;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--inactive);
    margin-bottom: 0.65rem;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 auto 0.85rem;
    color: var(--text);
    max-width: 18ch;
}

.hero-desc {
    margin: 0 auto;
    max-width: 52ch;
    color: var(--inactive);
    font-size: clamp(0.95rem, 2vw, 1.08rem);
    line-height: 1.6;
}

.hero--doc {
    text-align: left;
    padding: 0.35rem 0 1.25rem;
}

.hero--doc .hero-title {
    margin-left: 0;
    max-width: none;
    font-size: clamp(1.35rem, 3vw, 2rem);
    margin-bottom: 0.5rem;
}

.hero--doc .hero-eyebrow {
    margin-bottom: 0.35rem;
}

.hero--doc .hero-meta {
    justify-content: flex-start;
    margin-top: 0.65rem;
}

.hero-meta {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: 0.74rem;
    font-weight: 500;
    background: var(--surface);
    color: var(--inactive);
    border: 1px solid var(--border);
}

.badge-accent {
    background: var(--claude);
    color: #fff;
    border-color: var(--claude);
}

/* ── Main ── */
.site-main {
    width: var(--page-width);
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 1rem 0 4rem;
}

.page-heading {
    margin-bottom: 1.25rem;
}

.page-heading-eyebrow,
.doc-page-eyebrow {
    margin: 0 0 0.2rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--subtle);
}

.page-heading-title,
.doc-page-title {
    font-family: var(--font-sans);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.page-heading-desc {
    margin: 0 0 0.65rem;
    max-width: 52ch;
    color: var(--inactive);
    font-size: 0.92rem;
    line-height: 1.55;
}

.page-heading-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.doc-page-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.doc-page-header .badge {
    margin-top: 0.35rem;
}

.doc-related-links {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
}

.index-intro {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.index-intro p {
    margin: 0;
    color: var(--inactive);
    font-size: 0.94rem;
    line-height: 1.6;
}

.index-intro kbd {
    font-family: var(--font-sans);
    font-size: 0.78em;
    padding: 0.12rem 0.38rem;
    border-radius: 6px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.doc-section { margin-bottom: 2.75rem; }

.doc-section-title {
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.1rem;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 0.85rem;
}

.doc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    box-shadow: var(--shadow);
    text-decoration: none;
    min-height: 120px;
}

.doc-card:hover {
    border-color: var(--claude);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    text-decoration: none;
}

.doc-card-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
}

.doc-card-ref {
    font-size: 0.74rem;
    color: var(--claude-text);
    font-weight: 500;
}

.doc-card-arrow {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--subtle);
    padding-top: 0.35rem;
}

.doc-card:hover .doc-card-arrow { color: var(--claude-hover); }

/* ── Document page ── */
.doc-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: start;
}

@media (max-width: 900px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        order: 2;
        position: static;
        max-height: none;
    }

    .hero-title { max-width: none; }
}

.doc-sidebar {
    position: sticky;
    top: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem;
    font-size: 0.8rem;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

.doc-sidebar h3 {
    margin: 0 0 0.65rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--subtle);
    font-weight: 600;
}

.doc-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.doc-sidebar li { margin-bottom: 0.12rem; }

.doc-sidebar a {
    color: var(--inactive);
    display: block;
    padding: 0.38rem 0.55rem;
    border-radius: var(--radius-sm);
    line-height: 1.35;
    transition: background 0.12s, color 0.12s;
}

.doc-sidebar a:hover {
    color: var(--text);
    background: var(--surface-muted);
    text-decoration: none;
}

.doc-sidebar a.active {
    color: var(--claude);
    font-weight: 600;
    background: var(--claude-soft);
}

.doc-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2.25rem);
    box-shadow: var(--shadow);
    min-width: 0;
}

.doc-toolbar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.btn:hover {
    background: var(--surface-muted);
    text-decoration: none;
    color: var(--text);
}

.btn-primary {
    background: var(--claude);
    border-color: var(--claude);
    color: #fff;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--claude-hover);
    border-color: var(--claude-hover);
    color: #fff;
}

/* ── Prose ── */
.prose { color: var(--text); }
.prose > *:first-child { margin-top: 0; }
.prose > *:last-child { margin-bottom: 0; }

.prose h1 {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 500;
    margin: 0 0 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.prose h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.5vw, 1.28rem);
    font-weight: 500;
    margin: 2rem 0 0.6rem;
    color: var(--text);
}

.prose h3 {
    font-size: 0.98rem;
    font-weight: 600;
    margin: 1.35rem 0 0.4rem;
}

.prose p { margin: 0 0 1rem; }

.prose ul, .prose ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
}

.prose li { margin-bottom: 0.35rem; }

.prose strong { font-weight: 600; }

.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin: 1rem 0 1.5rem;
    display: block;
    overflow-x: auto;
    scrollbar-width: thin;
}

.prose th, .prose td {
    border: 1px solid var(--border);
    padding: 0.55rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.prose th {
    background: var(--surface-muted);
    font-weight: 600;
}

.prose tr:nth-child(even) td {
    background: rgba(245, 243, 238, 0.6);
}

.prose code {
    font-size: 0.86em;
    font-family: ui-monospace, 'SF Mono', Consolas, monospace;
    background: var(--surface-muted);
    color: var(--claude-text);
    padding: 0.12rem 0.38rem;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.prose pre {
    background: #2a2a28;
    color: #eceae4;
    padding: 1rem;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.84rem;
}

.prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

.prose a { color: var(--claude-text); }

/* ── Footer (igual home) ── */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    margin-top: 2.5rem;
    padding: 1.25rem 0 1.5rem;
}

.footer-inner {
    width: min(90vw, 32rem);
    max-width: 32rem;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    padding: 0 0.75rem;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-links a + a {
    border-left: 1px solid #9ca3af;
}

.footer-body {
    color: #fff;
    font-size: 0.875rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

.footer-body p {
    margin: 0 0 0.75rem;
}

.footer-copy-line {
    color: #9ca3af !important;
    font-size: 0.875rem !important;
    margin: 0.75rem 0 !important;
}

.footer-body strong {
    font-weight: 600;
}

.footer-muted {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── Print ── */
@media print {
    .header-nav, .doc-sidebar, .doc-toolbar, .site-top-divider { display: none !important; }
    .site-top { background: #fff; }
    .doc-page-header { border-bottom: none; padding-bottom: 0; }
    .site-main, .header-inner, .hero, .footer-inner {
        width: 100%;
        max-width: 100%;
    }
    .doc-article { box-shadow: none; border: none; }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-nav { width: 100%; }
}

/* ── Marketing / integrações (TikTok Shop, etc.) ── */
.page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow);
}

.panel h2 {
    font-family: var(--font-sans);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--text);
}

.panel h3 {
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.panel-lead {
    font-size: 1.05rem;
    color: var(--inactive);
    line-height: 1.6;
    margin: 0;
}

.panel-muted {
    font-size: 0.9rem;
    color: var(--inactive);
    margin: 0;
    line-height: 1.55;
}

.actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.35rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
    gap: 0.85rem;
}

.feature-grid .panel {
    padding: 1.25rem 1.35rem;
    margin: 0;
}

.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
    color: var(--inactive);
    font-size: 0.95rem;
}

.step-badge {
    flex-shrink: 0;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: var(--radius-pill);
    background: var(--claude-soft);
    color: var(--claude-text);
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-list {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.faq-list details {
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.2rem;
}

.faq-list details:last-child { border-bottom: none; }

.faq-list summary {
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: '+';
    color: var(--claude);
    font-size: 1.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.faq-list details[open] summary::after { content: '×'; }

.faq-list p {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--inactive);
    line-height: 1.55;
}

.support-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--inactive);
    line-height: 1.8;
}

.support-list a { color: var(--claude-text); }

.footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--subtle);
    margin: 0.5rem 0 0;
}

.hero--landing .hero-title {
    max-width: 22ch;
    color: var(--claude);
}

.hero--landing .hero-desc {
    max-width: 58ch;
}

