:root {
  --ink: #101216;
  --ink-2: #1b1e24;
  --ink-3: #2a2e36;
  --paper: #f6f5f0;
  --paper-2: #edebe3;
  --card: #ffffff;
  --line: #dfddd4;
  --line-strong: #c9c6ba;
  --text: #16181d;
  --muted: #5d6169;
  --lime: #c6f24e;
  --lime-dark: #3d5b00;
  --green: #17845c;
  --amber: #b26b00;
  --red: #c0392b;
  --blue: #2457d6;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16, 18, 22, .06), 0 8px 24px -12px rgba(16, 18, 22, .18);
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0 }
[hidden] { display: none !important }
html { -webkit-text-size-adjust: 100% }
body { font-family: var(--font-body); background: var(--paper); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased }
img { max-width: 100%; display: block }
a { color: inherit }
button, input, select, textarea { font: inherit; color: inherit }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; font-weight: 700 }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .97rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s, background .15s, border-color .15s, opacity .15s; white-space: nowrap; background: none; line-height: 1.2 }
.btn:hover { transform: translateY(-1px) }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none }
.btn-lime { background: var(--lime); color: var(--ink) }
.btn-ink { background: var(--ink); color: #fff }
.btn-line { border-color: var(--line-strong); color: var(--text); background: var(--card) }
.btn-ghost-dark { border-color: rgba(255, 255, 255, .22); color: #fff }
.btn-wa { background: #1fa855; color: #fff }
.btn-sm { padding: 8px 13px; font-size: .87rem; border-radius: 10px }
.btn-xs { padding: 6px 10px; font-size: .8rem; border-radius: 8px }
.btn-block { width: 100% }
.link { background: none; border: 0; color: var(--blue); cursor: pointer; text-decoration: underline; padding: 0; font-size: inherit }

/* Formulários */
label.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--text) }
label.field small { font-weight: 400; color: var(--muted) }
.input, select.input, textarea.input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; font-size: .97rem; font-weight: 400; transition: border-color .15s, box-shadow .15s }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(198, 242, 78, .55) }
textarea.input { resize: vertical; min-height: 92px; line-height: 1.5 }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ink); flex: none }

/* Peças */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--paper-2); color: var(--muted); white-space: nowrap }
.pill.green { background: #dcf5e9; color: #0f6a48 }
.pill.amber { background: #fdf0d7; color: #8a5300 }
.pill.gray { background: #eceae4; color: #6a6d73 }
.pill.lime { background: var(--lime); color: var(--ink) }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow) }
.muted { color: var(--muted) }
.small { font-size: .86rem }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; text-decoration: none }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); display: grid; place-items: center; color: var(--ink); flex: none }
.logo-mark svg { width: 18px; height: 18px }

/* Seletor segmentado */
.seg { display: inline-flex; background: var(--paper-2); border-radius: 10px; padding: 3px; gap: 2px }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: .84rem; font-weight: 600; cursor: pointer; color: var(--muted) }
.seg button.active { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1) }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(16, 18, 22, .55); backdrop-filter: blur(4px) }
.modal.open { display: grid }
.modal-box { background: var(--paper); border-radius: var(--radius-lg); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); position: relative }
.modal-box h2 { font-size: 1.5rem; margin-bottom: 6px }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 10px; border: 0; background: var(--paper-2); cursor: pointer; font-size: 1.3rem; line-height: 1 }
.stack { display: grid; gap: 14px }

/* Avisos */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5) }
.toast.show { opacity: 1; transform: translateX(-50%) }
.toast.error { background: var(--red) }
.notice { padding: 12px 14px; border-radius: 12px; font-size: .88rem; background: #fff8e6; border: 1px solid #f3dca6; color: #6e4b00 }
.notice.info { background: #eef3ff; border-color: #cdd9fb; color: #23407f }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block }
@keyframes spin { to { transform: rotate(360deg) } }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 0 80px }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px }
.legal h2 { font-size: 1.3rem; margin: 34px 0 10px }
.legal p, .legal li { color: #33363c; margin-bottom: 10px }
.legal ul { padding-left: 20px }
.topbar { border-bottom: 1px solid var(--line); background: var(--paper) }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important } }

.btn-danger { background: var(--red); color: #fff }
.modal.ask { z-index: 400 }
.ask .modal-box { width: min(440px, 100%) }
.ask-actions { justify-content: flex-end }
