:root {
    --ink: #1c1915;
    --soft: #5e584e;
    --paper: #f3eee6;
    --paper-2: #e7e0d4;
    --card: #fffdf8;
    --line: #e4d9c8;
    --pine: #1b4f45;
    --pine-2: #2d6d5f;
    --moss: #e7f2ee;
    --clay: #a84b2a;
    --clay-soft: #f8ece6;
    --gold: #8d6a2f;
    --gold-soft: #f6edd9;
    --ok: #1d6b45;
    --ok-soft: #e5f4eb;
    --danger: #8e2f2f;
    --shadow: 0 18px 40px rgba(48, 36, 18, .08);
    --serif: "Fraunces", Georgia, serif;
    --sans: "Outfit", "Segoe UI", sans-serif;
    --radius: 18px;
    --side: 272px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .page-title { font-family: var(--serif); font-weight: 560; letter-spacing: -.03em; line-height: 1.12; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 9; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header, .site-footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 700; }
.brand small { display: block; font-weight: 500; color: var(--soft); font-size: .78rem; letter-spacing: .01em; }
.brand-light, .brand-light small { color: #f6f1e8; }
.brand-light small { color: #d9cfc0; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--pine) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M7 21c3.2-7 6.2-7 9 0 2.8-7 5.8-7 9 0' stroke='%23f6f1e8' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='16' cy='11' r='2.2' fill='%23e4c27a'/%3E%3C/svg%3E") center/22px no-repeat; display: inline-block; }
.site-nav, .cluster { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.site-nav a { text-decoration: none; }
.btn, .icon-btn, .side-foot button, .tab-menu {
    border: 0; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 18px; border-radius: 999px; background: transparent;
}
.btn-primary { background: var(--pine); color: #f7f3ea; }
.btn-primary:hover { background: var(--pine-2); }
.btn-clay { background: var(--clay); color: #fffaf6; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: var(--clay-soft); color: var(--danger); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 42px; align-items: center; padding: 18px 0 54px; }
.kicker { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--gold); font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); margin: 0 0 14px; }
.lede { font-size: 1.12rem; color: var(--soft); max-width: 38rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--soft); font-size: .95rem; }
.trust span { display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--pine-2); }
.hero-panel { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 18px; box-shadow: var(--shadow); }
.ride-top, .ride-person, .split, .page-head, .card-head, .row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ride-person { justify-content: flex-start; margin: 14px 0; }
.muted, .fine, .page-sub { color: var(--soft); }
.fine { font-size: .92rem; }
.code-card { background: var(--gold-soft); border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.code-card strong, .code-big { font-family: var(--serif); font-size: 2.4rem; letter-spacing: .18em; }
.section { padding: 10px 0 54px; }
.section h2, .page-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }
.cards, .stats, .service-grid, .layer-grid { display: grid; gap: 14px; }
.cards, .service-grid { grid-template-columns: repeat(3, 1fr); }
.layer-grid { grid-template-columns: repeat(3, 1fr); }
.stats { grid-template-columns: repeat(4, 1fr); }
.card, .stat, .service-card, .layer, .auth-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.service-card strong, .layer strong { display: block; margin-bottom: 6px; }
.layer { background: var(--pine); color: #f6f1e8; }
.layer p { color: #e4ddd2; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps article { padding: 8px 0; }
.steps em { font-family: var(--serif); font-style: normal; color: var(--clay); font-size: 1.4rem; }
.site-footer { padding: 28px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; background:
    radial-gradient(circle at top left, #efe4cf, transparent 32%), var(--paper); }
.auth-shell { width: min(460px, calc(100% - 28px)); }
.auth-card { margin-top: 16px; padding: 22px; }
.auth-card h1 { margin: 0 0 6px; font-size: 2.2rem; }
.demo { background: var(--moss); border-radius: 14px; padding: 12px 14px; margin: 8px 0 16px; }
.demo p { margin: 0 0 6px; }
.demo ul { margin: 0; padding-left: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field span, .check { font-size: .92rem; }
input, select, textarea {
    width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 10px 12px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #d5ebe4; border-color: var(--pine-2); }
.is-invalid { border-color: var(--clay); }
.form-row, .split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { width: auto; min-height: 0; margin-top: 4px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 14px; }
.role-pick label { border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; }
.role-pick input { width: auto; min-height: 0; }
.app-body { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: var(--side); background: #14241f; color: #f4efe6;
    display: flex; flex-direction: column; padding: 18px 14px; z-index: 30;
}
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 22px; overflow: auto; }
.side-nav a, .tabbar a, .tab-menu {
    color: #d9d0c3; text-decoration: none; border-radius: 12px; min-height: 44px; padding: 8px 10px; display: flex; gap: 10px; align-items: center;
}
.side-nav a.is-active { background: #23483f; color: #fff; }
.side-nav em, .icon-btn i {
    margin-left: auto; background: var(--clay); color: white; border-radius: 99px; min-width: 20px; height: 20px; font-style: normal; font-size: .75rem;
    display: grid; place-items: center; padding: 0 5px;
}
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.side-foot button { color: #f4efe6; justify-content: flex-start; padding-left: 10px; }
.side-foot small { color: #c9bfb2; padding-left: 10px; }
.shell { margin-left: var(--side); }
.topbar { display: flex; align-items: center; gap: 12px; padding: 16px 22px; position: sticky; top: 0; background: rgba(243,238,230,.92); backdrop-filter: blur(10px); z-index: 5; }
.topbar-title { display: flex; flex-direction: column; }
.topbar-title span { color: var(--soft); font-size: .88rem; }
.icon-btn { position: relative; width: 44px; min-height: 44px; padding: 0; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.icon-btn i { position: absolute; top: 4px; right: 4px; }
.main { width: min(1100px, calc(100% - 36px)); margin: 0 auto; padding: 8px 0 48px; }
.page-head { align-items: flex-end; margin: 8px 0 16px; }
.page-sub { margin: 6px 0 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.8rem; }
.stat span, .table-scroll { color: var(--soft); font-size: .92rem; }
.stack > * + * { margin-top: 14px; }
.alert { border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.alert-ok { background: var(--ok-soft); color: var(--ok); }
.alert-erro { background: var(--clay-soft); color: var(--danger); }
.notice { background: #fff; border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 10px; color: var(--soft); font-size: .95rem; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 650; background: var(--paper-2); }
.badge-pine { background: var(--moss); color: var(--pine); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-clay { background: var(--clay-soft); color: var(--clay); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-neutral { background: var(--paper-2); color: var(--soft); }
.table-scroll { overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--soft); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.person { display: flex; gap: 10px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; object-fit: cover; }
.avatar-0 { background: #1b4f45; } .avatar-1 { background: #a84b2a; } .avatar-2 { background: #8d6a2f; } .avatar-3 { background: #355c78; } .avatar-4 { background: #5c4a6a; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--moss); color: var(--pine); border-radius: 999px; padding: 4px 10px; font-size: .85rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.timeline li { display: flex; gap: 10px; align-items: center; color: var(--soft); }
.timeline span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: #fff; font-size: .8rem; }
.timeline .is-done { color: var(--pine); }
.timeline .is-done span, .timeline .is-current span { background: var(--pine); color: white; border-color: var(--pine); }
.timeline .is-current { font-weight: 700; color: var(--ink); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 10px; }
.kv b { color: var(--soft); font-weight: 550; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #fff; font-size: .9rem; }
.filters a.is-on { background: var(--pine); color: white; border-color: var(--pine); }
.empty { padding: 28px 8px; text-align: center; color: var(--soft); }
.wizard-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.wizard-bar i { height: 6px; flex: 1; border-radius: 99px; background: var(--paper-2); display: block; }
.wizard-bar i.on { background: var(--pine); }
.step[hidden] { display: none; }
.quote { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.quote.total { border-bottom: 0; font-size: 1.2rem; }
.ico { width: 20px; height: 20px; }
.tabbar, #openMenu { display: none; }
.backdrop { position: fixed; inset: 0; background: rgba(20, 16, 12, .45); z-index: 25; }
.stars { color: var(--gold); letter-spacing: .08em; }
.link { color: var(--pine); font-weight: 650; }
.emergency { background: var(--clay); color: white; border-radius: 24px; padding: 22px; }
.emergency .btn { background: white; color: var(--clay); }
.texto-grande { font-size: 19px; }
.texto-grande .page-title { font-size: 2.5rem; }
@media (max-width: 980px) {
    .hero, .cards, .service-grid, .layer-grid, .steps, .stats, .footer-grid, .form-row, .split-2, .check-grid { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
    .sidebar.is-open { transform: none; }
    .shell { margin-left: 0; }
    #openMenu, .tabbar { display: flex; }
    .tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; background: #fffdf8; border-top: 1px solid var(--line);
        justify-content: space-around; z-index: 20; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    }
    .tabbar a, .tab-menu { flex-direction: column; gap: 2px; font-size: .72rem; min-height: 52px; color: var(--soft); background: transparent; border: 0; }
    .tabbar a.is-active { color: var(--pine); }
    .main { width: min(100% - 28px, 1100px); padding-bottom: 96px; }
    .hero, .cards, .service-grid, .layer-grid, .steps, .footer-grid, .form-row, .split-2, .check-grid, .role-pick, .kv { grid-template-columns: 1fr; }
    .site-nav a:not(.btn) { display: none; }
}
@media print {
    .sidebar, .topbar, .tabbar, .no-print { display: none !important; }
    .shell { margin: 0; }
    body { background: white; }
}
