:root {
  /* Paleta do Instagram @_wessll (post "Seu escritório fecha", aprovada por Wesley em 28/09/2026) */
  --bg: #0a0b0f;
  --bg-2: #101217;
  --surface: #14191e;
  --surface-2: #1c2228;
  --line: #2a3038;
  --text: #f7f7f8;
  --muted: #aab0b8;
  --primary: #f8e24c;
  --primary-hover: #ffec70;
  --primary-rgb: 248, 226, 76;
  --on-primary: #0a0b0f;
  --error: #ff9a8f;
  --success: #f8e24c;
  --bubble-in: #1c2228;
  --bubble-out: #262c33;
  --radius: 14px;
  --radius-lg: 22px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.lead { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--muted); max-width: 36em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--primary); color: var(--on-primary); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 5; background: rgba(10, 11, 15, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary); color: var(--on-primary); font-weight: 900;
}
.brand__sub { color: var(--muted); font-weight: 500; }

/* Buttons */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 24px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transform: translate(var(--mx), var(--my));
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn > span { display: inline-block; transform: translate(calc(var(--mx) * .4), calc(var(--my) * .4)); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 8px 24px -10px rgba(var(--primary-rgb), .6); }
.btn--primary:hover { background: var(--primary-hover); box-shadow: 0 12px 32px -10px rgba(var(--primary-rgb), .75); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); background: var(--surface); }
.btn:active { transform: translate(var(--mx), var(--my)) scale(.97); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.is-loading > span::after {
  content: ""; display: inline-block; width: 1em; height: 1em; margin-left: .6em; vertical-align: -.15em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

/* Hero */
.hero { padding: 48px 0 64px; background: radial-gradient(900px 480px at 85% 10%, rgba(var(--primary-rgb),.12), transparent 60%), var(--bg); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero__actions > .btn { flex: 1 1 100%; }
.hero__alt { display: flex; flex-wrap: wrap; gap: 12px; flex: 1 1 100%; }
.hero__alt .btn { flex: 1 1 100%; }
.hero__note { font-size: .9375rem; color: var(--muted); }

/* Chat mock */
.chat {
  width: 100%; max-width: 420px; justify-self: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7); overflow: hidden;
}
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat__head strong { display: block; font-size: .9375rem; }
.chat__head small { color: var(--primary); font-size: .8125rem; }
.chat__avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); font-weight: 800; }
.chat__body { list-style: none; margin: 0; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; font-size: .9375rem; line-height: 1.45; }
.msg { position: relative; max-width: 84%; padding: 9px 12px 20px; border-radius: 14px; }
.msg time { position: absolute; right: 10px; bottom: 4px; font-size: .6875rem; color: var(--muted); }
.msg--in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.msg--out time { color: #b7bdc4; }
.msg--ok { background: var(--primary); color: var(--on-primary); font-weight: 600; }
.msg--ok time { color: #4a4520; }
.msg b { color: var(--primary); }
.hl { color: var(--primary); }

.js .chat.is-animating .msg { opacity: 0; transform: translateY(8px); }
.js .chat.is-animating .msg.is-in { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }

/* How */
.how { padding: 72px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.how h2 { max-width: 18em; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.step { position: relative; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step p { color: var(--muted); margin: 0; }
.step__n {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px;
  background: rgba(var(--primary-rgb),.14); color: var(--primary); font-weight: 800;
}

/* Contact */
.contact { padding: 72px 0 80px; }
.contact__grid { display: grid; gap: 36px; align-items: start; }
.contact__copy > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; color: var(--primary); font-weight: 800; }

.form { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.req { color: var(--primary); }
.opt { color: var(--muted); font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #7c838c; }
.field input:hover { border-color: #3d4550; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.25); }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; min-height: 0; font-size: .875rem; color: var(--error); }
.field__error:empty { display: none; }
.field--check { grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--primary); }
.field--check label { font-weight: 400; font-size: .9375rem; color: var(--muted); }
.field--check .field__error { grid-column: 1 / -1; }
.form__status { margin: 0; font-size: .9375rem; }
.form__status:empty { display: none; }
.form__status.is-success { color: var(--success); font-weight: 600; }
.form__status.is-error { color: var(--error); }

.cta-card { gap: 14px; }
.cta-card__title { margin: 0; font-size: 1.375rem; font-weight: 750; line-height: 1.25; }
.cta-card__text { margin: 0 0 6px; color: var(--muted); }

/* Footer */
.footer { padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9375rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 20px; }
.footer a { color: var(--muted); display: inline-block; padding: 10px 0; }
.footer a:hover { color: var(--text); }

/* Privacy page */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
.doc h2 { font-size: 1.375rem; margin-top: 1.8em; }
.doc p, .doc li { color: var(--muted); }
.draft { padding: 14px 16px; border: 1.5px dashed var(--error); border-radius: 12px; color: var(--text); }

/* Breakpoints */
@media (min-width: 640px) {
  .hero__actions > .btn { flex: 0 0 auto; }
  .hero__alt .btn { flex: 0 0 auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .hero { padding: 80px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .form { padding: 32px; }
  .how, .contact { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn, .btn > span { transform: none !important; }
}

/* Celulares estreitos: topo em uma linha */
.topbar .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .brand__sub { display: none; }
}
