:root {
  --ink: #101437;
  --cobalt: #2B3DF0;
  --paper: #F3F4F8;
  --signal: #FFC933;
  --mist: #DDE1F5;
  --muted: #4A5078;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; margin: 0; line-height: 1; letter-spacing: -.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.block--cobalt :focus-visible, .block--ink :focus-visible, .chat :focus-visible { outline-color: var(--signal); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 12px; border: 0; cursor: pointer;
  font: 600 1rem var(--font); text-decoration: none; transition: background-color .2s, color .2s;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--cobalt); }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #fff; }
.btn--block { width: 100%; }

/* Cabeçalho */
.header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.55rem var(--font-display); letter-spacing: -.04em; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .btn { padding: 11px 20px; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; }

/* Topo */
.hero { padding: 72px 0 88px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.hero__text { padding-top: 24px; }
.hero h1 { font-size: clamp(3rem, 7.2vw, 6.2rem); line-height: .92; color: var(--cobalt); letter-spacing: -.045em; }
.lead { font-size: 1.25rem; line-height: 1.5; max-width: 30em; margin-top: 28px; color: var(--muted); }
.hero__alt { margin-top: 22px; color: var(--muted); }
.hero__alt a { color: var(--ink); font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* Conversa */
.chat { background: var(--ink); color: var(--paper); border-radius: 26px 26px 26px 6px; overflow: hidden; box-shadow: 10px 10px 0 var(--cobalt); }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.chat__head strong { display: block; font: 800 1.05rem var(--font-display); letter-spacing: -.02em; line-height: 1.2; }
.chat__head span { font-size: .85rem; color: #AEB4E6; }
.chat__body { padding: 22px; display: grid; gap: 10px; min-height: 340px; align-content: start; }
.msg { max-width: 86%; padding: 11px 16px; border-radius: 18px; line-height: 1.4; }
.msg--sys { background: #222866; border-bottom-left-radius: 5px; justify-self: start; }
.msg--me { background: var(--signal); color: var(--ink); font-weight: 600; border-bottom-right-radius: 5px; justify-self: end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
  font: 500 .95rem var(--font); color: var(--paper); background: transparent; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; padding: 9px 16px; transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--signal); }
.chip[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--ink); font-weight: 600; }
.compose { display: grid; gap: 10px; }
.compose[hidden], .msg[hidden] { display: none; }
.compose textarea {
  font: inherit; color: var(--paper); background: transparent; border: 1.5px solid rgba(255, 255, 255, .35);
  border-radius: 14px; padding: 12px 14px; width: 100%; resize: vertical;
}
.compose textarea::placeholder { color: #8A91C9; }
.compose textarea:focus { outline: none; border-color: var(--signal); }

/* Única animação automática: a conversa entrando */
.js .seq { opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
.js .seq.on { opacity: 1; transform: none; }

/* Blocos */
.block { padding: 104px 0; }
.block h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -.04em; line-height: .98; }
.block--cobalt { background: var(--cobalt); color: #fff; }
.block--ink { background: var(--ink); color: var(--paper); }

/* Serviços */
.rows { margin-top: 48px; border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1.3fr 11.5rem; gap: 40px; align-items: baseline; padding: 34px 0; border-bottom: 2px solid var(--ink); }
.row h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.row p { color: var(--muted); max-width: 34em; }
.row a { font-weight: 600; white-space: nowrap; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--cobalt); }
.row a:hover { color: var(--cobalt); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 56px; }
.steps li { border-top: 2px solid rgba(255, 255, 255, .5); padding-top: 18px; }
.steps__n { display: block; font: 800 4.6rem/1 var(--font-display); letter-spacing: -.05em; color: var(--signal); margin-bottom: 20px; }
.steps h3 { font-size: 1.45rem; line-height: 1.1; margin-bottom: 10px; }
.steps p { color: #D7DBFF; }

/* Sobre */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: start; }
.about__text { display: grid; gap: 18px; color: var(--muted); max-width: 34em; }
.promises { display: grid; gap: 14px; margin-top: 10px; color: var(--ink); }
.promises li { padding-left: 18px; border-left: 4px solid var(--signal); }
.promises strong { font-weight: 700; }

/* Contato */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: end; }
.contact h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.contact__side { display: grid; gap: 24px; justify-items: start; }
.contact__side p { font-size: 1.2rem; color: #C9CEF5; max-width: 22em; }
.contact__side .btn { padding: 18px 32px; font-size: 1.15rem; }
.contact__ig { color: #C9CEF5; text-underline-offset: 4px; }
.contact__ig:hover { color: var(--signal); }

/* Rodapé */
.footer { background: var(--ink); color: #AEB4E6; padding: 8px 0 44px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; border-top: 1px solid rgba(255, 255, 255, .16); padding-top: 36px; font-size: .95rem; }
.footer .brand { color: var(--paper); font-size: 1.3rem; }
.footer__copy { width: 100%; font-size: .85rem; opacity: .75; }

/* Responsivo */
@media (max-width: 960px) {
  .hero__grid, .about, .contact { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; gap: 12px; }
  .block { padding: 80px 0; }
}
@media (max-width: 760px) {
  .burger { display: block; }
  .nav {
    position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 6px 20px 22px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--mist); }
  .nav__cta { margin-top: 18px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .chat { box-shadow: 6px 6px 0 var(--cobalt); }
  .chat__body { min-height: 0; padding: 18px; }
  .contact__side .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .seq { opacity: 1; transform: none; transition: none; }
}
