/* revite — site institucional
   Cores e fonte do kit oficial (Revite-Oficial-kit). */

@font-face { font-family: "Rethink Sans"; src: url("../assets/fonts/rethink-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("../assets/fonts/rethink-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("../assets/fonts/rethink-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Rethink Sans"; src: url("../assets/fonts/rethink-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --aurora: #FF6B3D;
  --aurora-deep: #E8552A;
  --tinta: #1B1726;
  --tinta-2: #251F33;
  --tinta-3: #322A43;
  --papel: #FBF9F5;
  --areia: #EFEBE4;
  --areia-2: #E4DED4;
  --grafite: #5E5868;

  --on-tinta: #FBF9F5;
  --on-tinta-2: rgba(251, 249, 245, .74);
  --on-tinta-line: rgba(251, 249, 245, .14);
  --line: rgba(27, 23, 38, .12);

  --font: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 11vw, 152px);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 48px -20px rgba(27, 23, 38, .35), 0 8px 16px -8px rgba(27, 23, 38, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--grafite) var(--areia); }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  caret-color: var(--aurora);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--aurora); color: var(--tinta); }
:focus-visible { outline: 2.5px solid var(--aurora); outline-offset: 3px; border-radius: 6px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--areia); }
::-webkit-scrollbar-thumb { background: var(--grafite); border-radius: 99px; border: 3px solid var(--areia); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--aurora); color: var(--tinta); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Tipografia */
.h2 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: var(--grafite); max-width: 58ch; text-wrap: pretty; }

/* Botões */
.btn {
  --bg: var(--aurora); --fg: var(--tinta);
  display: inline-flex; align-items: center; gap: .6em;
  min-height: 52px; padding: 0 1.5em; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 0;
  font: 700 1rem/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, transform .12s;
}
.btn:active { transform: scale(.97); }
.btn--aurora:hover { --bg: #FF7D53; }
.btn--ink { --bg: var(--tinta); --fg: var(--papel); }
.btn--ink:hover { --bg: var(--tinta-3); }
.btn--sm { min-height: 44px; padding: 0 1.15em; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: 0 1.75em; font-size: 1.0625rem; }
.btn .ico { width: 1.3em; height: 1.3em; }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; text-decoration: none; padding-block: .35em; }
.link-arrow .ico { transition: transform .45s var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover .ico { transform: translateX(4px); }
.link-arrow--light { color: var(--on-tinta); }

/* Topo */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s, box-shadow .35s, transform .45s var(--ease); }
.topbar__inner { display: flex; align-items: center; gap: 32px; height: 80px; }
.topbar__logo { position: relative; display: block; width: 118px; height: 32px; flex: none; }
.topbar__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .3s; }
.logo-on-light { opacity: 0; }
.topbar__nav { display: flex; gap: 6px; margin-left: auto; }
.topbar__nav a { color: var(--on-tinta); text-decoration: none; font-weight: 500; font-size: .9875rem; padding: 10px 14px; border-radius: 99px; transition: background-color .25s, color .25s; }
.topbar__nav a:hover { background: var(--on-tinta-line); }
.topbar__nav-cta { display: none; }
.topbar__toggle { display: none; }

/* rolando sobre o hero: fundo Tinta para o texto não passar por baixo do logo */
.topbar.is-scrolled { background: var(--tinta); box-shadow: 0 1px 0 var(--on-tinta-line); }
.topbar.is-solid { background: var(--papel); box-shadow: 0 1px 0 var(--line); }
/* recolhe enquanto os sites estão em tela cheia */
.topbar.is-solid .logo-on-dark { opacity: 0; }
.topbar.is-solid .logo-on-light { opacity: 1; }
.topbar.is-solid .topbar__nav a { color: var(--tinta); }
.topbar.is-solid .topbar__nav a:hover { background: var(--areia); }

/* Hero: só tipografia e a ação */
.hero { position: relative; background: var(--tinta); color: var(--on-tinta); padding-top: 80px; }
.hero__inner { min-height: clamp(600px, calc(100svh - 80px), 900px); display: grid; align-content: center; gap: clamp(40px, 5vw, 72px); padding-block: clamp(56px, 8vw, 112px); }
.hero__title { font-size: clamp(3rem, 8.4vw, 7.5rem); line-height: .94; font-weight: 800; letter-spacing: -.045em; max-width: 12ch; text-wrap: balance; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--on-tinta-line); }
.hero__lead { max-width: 44ch; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); color: var(--on-tinta-2); }

/* Palavra circulada + balão: a mesma gramática da logo */
.mark { position: relative; display: inline-block; white-space: nowrap; }
.mark__word { position: relative; z-index: 1; }
.mark__loop { position: absolute; left: -9%; top: -14%; width: 118%; max-width: none; height: 132%; overflow: visible; pointer-events: none; }
.mark__loop path { fill: none; stroke: var(--aurora); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js-motion .mark__loop path { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* começa só depois que a página carrega (js/main.js), para não disputar o processador com o carregamento */
.js-motion .mark.is-drawn .mark__loop path { animation: draw 1.1s .1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Palco da logo: o balão entra pulando e pousa no lugar */
.stage { background: var(--papel); }
.stage__sticky { display: grid; place-content: center; justify-items: center; gap: clamp(28px, 4vw, 48px); padding: clamp(96px, 12vw, 160px) var(--gutter) 0; overflow-x: clip; }
/* Centraliza pela palavra (0–325 de 368); o balão fica pendurado à direita, como na logo */
.stage__logo { width: min(80vw, 980px); height: auto; overflow: visible; transform: translateX(5.84%); }
.stage__ball { position: absolute; left: 0; top: 0; border-radius: 50%; background: var(--aurora); transform-origin: 50% 100%; will-change: transform; pointer-events: none; }
.js-motion .stage__sticky { position: relative; min-height: 100svh; padding-block: 0; }

/* Ideia */

.idea { padding-block: clamp(72px, 8vw, 112px) var(--section); }
.idea__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px clamp(40px, 7vw, 112px); align-items: start; }
.idea__copy .lead + .lead { margin-top: 20px; }

/* Serviços */
.services { background: var(--tinta); color: var(--on-tinta); padding-block: var(--section); position: relative; overflow: clip; }
.services__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.services__head { position: sticky; top: 128px; }
.services__head .lead { color: var(--on-tinta-2); margin-top: 24px; max-width: 40ch; }
.services__head .btn { margin-top: 36px; }
.svc-list { border-top: 1px solid var(--on-tinta-line); }
.svc { position: relative; padding: clamp(32px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--on-tinta-line); display: grid; gap: 16px; }
.svc__title { position: relative; justify-self: start; font-size: clamp(1.75rem, 2.8vw, 2.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; padding-right: .5em; }
.svc__title::after { content: ""; position: absolute; right: 0; top: .02em; width: .26em; height: .26em; border-radius: 50%; background: var(--aurora); transform: scale(0); transition: transform .45s var(--ease); }
.svc:hover .svc__title::after, .svc:focus-within .svc__title::after { transform: scale(1); }
.svc__incl { font-size: .9375rem; color: rgba(251, 249, 245, .6); max-width: 60ch; text-wrap: pretty; }
.svc__text { color: var(--on-tinta-2); max-width: 54ch; font-size: 1.0625rem; text-wrap: pretty; }
.svc .link-arrow { justify-self: start; margin-top: 4px; }

/* Trabalhos: índice de nomes + telas com o site real */
.work { padding-block: var(--section); background: var(--papel); }
.work__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "head stage" "list stage"; gap: 0 clamp(40px, 6vw, 96px); align-items: start; }
.work__head { grid-area: head; }
.work__head .lead { margin-top: 20px; max-width: 40ch; }
.work__list { grid-area: list; position: relative; margin-top: 40px; }
.idx { border-top: 1px solid var(--line); }
.idx__item { border-bottom: 1px solid var(--line); }
.idx__name {
  display: block; width: 100%; padding: 18px 0; border: 0; background: none; cursor: pointer; text-align: left;
  font: 800 clamp(1.625rem, 2.8vw, 2.5rem)/1.08 var(--font); letter-spacing: -.035em; color: rgba(27, 23, 38, .5);
  transition: color .3s;
}
.idx__name:hover, .idx__item.is-active .idx__name { color: var(--tinta); }
.idx__name:focus-visible { outline-offset: -2px; }
.idx__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.idx__more > div { overflow: hidden; }
.idx__item.is-active .idx__more { grid-template-rows: 1fr; }
.idx__seg { font-weight: 700; font-size: .9375rem; }
.idx__text { color: var(--grafite); max-width: 46ch; margin-top: 6px; }
.idx__more .link-arrow { margin: 10px 0 22px; }
.idx__dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--aurora); pointer-events: none; opacity: 0; }
.idx__dot.is-ready { opacity: 1; }

.work__stage { grid-area: stage; position: sticky; top: 104px; height: clamp(560px, calc(100svh - 150px), 800px); }
.screens { position: relative; height: 100%; }
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .3s .45s, visibility 0s .75s; }
.screen.is-active { opacity: 1; visibility: visible; z-index: 2; transition: none; animation: wipe .75s var(--ease); }
@keyframes wipe { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.desk { position: absolute; top: 0; left: 0; width: 86%; margin: 0; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--areia); box-shadow: var(--shadow); outline: 1px solid var(--line); outline-offset: -1px; }
.desk img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone { position: absolute; right: 0; bottom: 0; height: 88%; aspect-ratio: 9 / 19.5; margin: 0; padding: 8px; border-radius: 44px; background: var(--tinta); box-shadow: var(--shadow); }
.phone__screen { height: 100%; border-radius: 36px; overflow: hidden; background: var(--tinta-2); }
.phone__screen video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Chamada final: o único campo Aurora da página */
.close { background: var(--aurora); color: var(--tinta); padding-block: clamp(80px, 10vw, 136px); overflow: hidden; }
.close__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 6vw, 96px); align-items: center; }
.close__symbol { order: 2; width: clamp(150px, 26vw, 360px); margin-right: clamp(0px, 3vw, 48px); }
.close__title { font-size: clamp(2.5rem, 5.4vw, 4.75rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; text-wrap: balance; max-width: 16ch; }
.close__lead { margin-top: 20px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 44ch; color: #3A2420; }
.close .btn { margin-top: 36px; }

/* Rodapé */
.foot { background: var(--tinta); color: var(--on-tinta-2); padding-top: clamp(64px, 7vw, 96px); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr)); gap: 48px; padding-bottom: 56px; }
.foot__brand img { width: 147px; }
.foot__brand p { margin-top: 20px; max-width: 34ch; }
.foot__brand .foot__tag { margin-top: 20px; color: var(--papel); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; }
.foot__h { font-size: .9375rem; font-weight: 700; color: var(--on-tinta); margin-bottom: 14px; }
.foot__col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.foot__col a { text-decoration: none; padding: 6px 0; transition: color .25s; }
.foot__col a:hover { color: var(--on-tinta); text-decoration: underline; }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--on-tinta-line); font-size: .875rem; }
.foot__base a { text-decoration: none; }
.foot__base a:hover, .foot__legal button:hover { color: var(--on-tinta); text-decoration: underline; }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot__legal button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration-thickness: 1.5px; text-underline-offset: .22em; }

/* Aviso de cookies */
.btn--line { --bg: transparent; --fg: var(--on-tinta); box-shadow: inset 0 0 0 1.5px var(--on-tinta-line); }
.btn--line:hover { --bg: var(--tinta-3); }
.consent {
  position: fixed; left: 0; right: 0; bottom: var(--gutter); z-index: 70; margin-inline: auto; width: min(640px, calc(100vw - var(--gutter) * 2));
  display: grid; gap: 18px; padding: 22px 24px; border-radius: var(--radius-sm);
  background: var(--tinta-2); color: var(--on-tinta-2); box-shadow: inset 0 0 0 1px var(--on-tinta-line), var(--shadow);
  font-size: .9375rem; line-height: 1.55;
  transform: translateY(calc(100% + 48px)); visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s .6s;
}
.consent.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
.consent a { color: var(--on-tinta); font-weight: 700; }
.consent__actions { display: flex; gap: 10px; justify-content: flex-end; }
@media (max-width: 560px) {
  .consent { bottom: 12px; width: calc(100vw - 24px); padding: 20px; }
  .consent__actions .btn { flex: 1; justify-content: center; }
}

/* Páginas legais */
.legal-head .wrap { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); }
.legal-head h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; max-width: 16ch; text-wrap: balance; }
.legal-head p { margin-top: 20px; max-width: 52ch; color: var(--on-tinta-2); font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); }
.legal { padding-block: clamp(56px, 7vw, 96px) var(--section); }
.legal__body > * { max-width: 70ch; }
.legal__date { color: var(--grafite); font-size: .9375rem; }
.legal__body h2 { margin-top: 48px; font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; scroll-margin-top: 96px; }
.legal__body h3 { margin-top: 24px; font-size: 1.0625rem; font-weight: 700; }
.legal__body p, .legal__body ul { margin-top: 14px; }
.legal__body ul { padding-left: 1.2em; list-style: disc; }
.legal__body li + li { margin-top: 6px; }
.legal__body li::marker { color: var(--aurora-deep); }
.legal__body a { font-weight: 700; }
.legal__body table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .9375rem; }
.legal__body th, .legal__body td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.legal__body th { font-weight: 700; }
@media (max-width: 560px) {
  .legal__body thead { display: none; }
  .legal__body tr { display: block; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .legal__body td { display: block; padding: 2px 0; border: 0; }
  .legal__body td::before { content: attr(data-label) ": "; font-weight: 700; }
  .legal__body td:first-child::before { content: none; }
}
.legal__body code { font-size: .875em; background: var(--areia); padding: .1em .35em; border-radius: 6px; }

/* Um WhatsApp por vez. Computador: o botão do hero encaixa no lugar do botão do topo, acompanhando a rolagem.
   Celular: o flutuante aparece quando o botão do hero sai da tela. */
.cta-hero .topbar__cta, .cta-dock .topbar__cta { visibility: hidden; }
.cta-dock [data-hero-cta], .cta-away [data-hero-cta] { visibility: hidden; }
.cta-ghost {
  position: fixed; z-index: 60; margin: 0; pointer-events: none; white-space: nowrap; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  background: var(--aurora); color: var(--tinta); font-family: var(--font); font-weight: 700; line-height: 1; border-radius: 999px;
}
.cta-ghost svg { width: 1.3em; height: 1.3em; flex: none; }
.wa-float { transition: transform .45s var(--ease), opacity .3s var(--ease), visibility 0s; }
/* some na hora: nunca dois botões ao mesmo tempo */
.cta-hero .wa-float { transform: scale(.3); opacity: 0; visibility: hidden; transition: none; }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 40;
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tinta); color: var(--papel); box-shadow: 0 14px 30px -10px rgba(27, 23, 38, .6);
  transition: transform .5s var(--ease), opacity .4s, visibility .4s;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); }
.wa-float__dot { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--aurora); box-shadow: 0 0 0 3px var(--papel); }
/* sobre os campos Tinta o botão vira Papel, senão some no fundo */
.wa-float.on-dark { background: var(--papel); color: var(--tinta); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .7); }
.wa-float.on-dark .wa-float__dot { box-shadow: 0 0 0 3px var(--tinta); }
/* Balão do flutuante: fala da revite saindo do botão (ponta no canto de baixo, do lado do botão) */
.wa-pop {
  position: fixed; z-index: 41; right: clamp(16px, 2.4vw, 28px); bottom: calc(clamp(16px, 2.4vw, 28px) + 62px + 12px);
  display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 32px);
  padding: 6px 6px 6px 18px; border-radius: 20px 20px 6px 20px;
  background: var(--papel); color: var(--tinta); box-shadow: var(--shadow), 0 0 0 1px rgba(27, 23, 38, .08);
  transform-origin: 100% 100%; transform: translateY(8px) scale(.6); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease), opacity .25s, visibility 0s .5s;
}
.wa-pop[hidden] { display: none; }
.wa-pop.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .25s, visibility 0s; }
.wa-pop__text { font-weight: 700; font-size: .9375rem; line-height: 1.25; color: inherit; text-decoration: none; padding-block: 8px; white-space: nowrap; }
.wa-pop__text:hover { text-decoration: underline; text-underline-offset: .2em; }
.wa-pop__close { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--grafite); cursor: pointer; }
.wa-pop__close:hover { background: var(--areia); color: var(--tinta); }
.wa-pop__close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
/* some junto com o botão */
.cta-hero .wa-pop, .wa-float.is-hidden ~ .wa-pop { opacity: 0; visibility: hidden; transform: translateY(8px) scale(.6); }
@media (min-width: 861px) { .wa-pop { padding-left: 22px; } .wa-pop__text { font-size: 1.0625rem; } }
@media (prefers-reduced-motion: reduce) { .wa-pop, .wa-pop.is-open { transition: none; } }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(16px); }

/* Responsivo */
@media (max-width: 1040px) {
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .services__grid, .idea__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "list"; }
  .work__stage { position: relative; top: 0; height: auto; margin-top: 40px; }
  .screens { width: min(66vw, 320px); aspect-ratio: 9 / 19.5; height: auto; margin-inline: auto; }
  .desk { display: none; }
  .phone { height: 100%; width: 100%; }
  .idea__grid { gap: 28px; }
  .services__head { position: static; }
}

@media (max-width: 860px) {
  .topbar__inner { height: 68px; gap: 12px; }
  .hero { padding-top: 68px; }
  html { scroll-padding-top: 76px; }
  .topbar__cta { display: none; }
  .topbar__toggle {
    display: grid; place-items: center; margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
    background: var(--on-tinta-line); border: 0; color: var(--on-tinta); cursor: pointer; position: relative; z-index: 2;
  }
  .topbar.is-solid .topbar__toggle { background: var(--areia); color: var(--tinta); }
  .burger { display: grid; gap: 6px; width: 20px; }
  .burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .4s var(--ease); }
  .topbar__nav {
    position: fixed; inset: 0; z-index: 1; margin: 0; flex-direction: column; justify-content: center; gap: 4px;
    padding: 96px var(--gutter) 48px; background: var(--tinta);
    clip-path: circle(0 at calc(100% - var(--gutter) - 23px) 34px); visibility: hidden;
    transition: clip-path .7s var(--ease), visibility 0s .7s;
  }
  .topbar__nav a, .topbar.is-solid .topbar__nav a { color: var(--on-tinta); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; padding: 10px 0; border-radius: 0; }
  .topbar__nav a:hover, .topbar.is-solid .topbar__nav a:hover { background: none; color: var(--aurora); }
  /* o mesmo seletor com .is-solid: a barra rolada não pode transformar o botão em texto grande quadrado */
  .topbar__nav .topbar__nav-cta, .topbar.is-solid .topbar__nav .topbar__nav-cta { display: inline-flex; align-self: flex-start; margin-top: 24px; font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; background: var(--aurora); color: var(--tinta); padding: 16px 24px; border-radius: 99px; }
  .topbar__nav .topbar__nav-cta:hover, .topbar.is-solid .topbar__nav .topbar__nav-cta:hover { background: #FF7D53; color: var(--tinta); }
  .menu-open .topbar__nav { clip-path: circle(150% at calc(100% - var(--gutter) - 23px) 34px); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
  .menu-open .topbar__toggle, .menu-open .topbar.is-solid .topbar__toggle { background: var(--tinta-3); color: var(--papel); }
  .menu-open .burger i:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu-open .topbar__logo .logo-on-dark { opacity: 1; position: relative; z-index: 3; }
  .menu-open .topbar__logo .logo-on-light { opacity: 0; }
  .menu-open .topbar__logo { z-index: 3; }
  .menu-open .topbar { background: transparent; box-shadow: none; }
  body.menu-open { overflow: hidden; }

  .close__inner { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero__title { font-size: clamp(2.6rem, 12.4vw, 3.5rem); }
  .hero__inner { min-height: calc(100svh - 68px); }
  .hero__title { font-size: clamp(2.9rem, 14vw, 4rem); }
  .hero__foot .btn { width: 100%; justify-content: center; }
  .phone { padding: 6px; border-radius: 34px; }
  .phone__screen { border-radius: 28px; }
  .close .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .foot__grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 860px) {
  .close__symbol { order: 0; width: 120px; margin: 0; }
  /* o último serviço não fica embaixo do WhatsApp flutuante */
  .svc-list { margin-bottom: 72px; }
}
