/* =========================================================
   MAAC Mídia — estúdio de design, marketing e tecnologia
   Paleta: vermelho (Pantone 485 C) · preto #111 · cinza #E5E5E5
   Fontes: Anton (títulos) · Inter (texto) · Caveat (notas à mão)
   ========================================================= */

:root {
  --red: #E3060F;
  --red-deep: #8A0007;
  --ink: #111;
  --ink-2: #3b3b3b;
  --muted: #6d6d6d;
  --grey: #E5E5E5;
  --paper: #F6F3EE;
  --lilac: #8B6BB8;
  --lilac-deep: #5E4386;
  --lilac-soft: #EFE8F6;
  --wa: #1FAF54;

  --f-title: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1200px;
  --gutter: max(24px, calc((100vw - var(--wrap)) / 2));
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 60px -28px rgba(17, 17, 17, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  position: relative; margin: 0; overflow-x: hidden;
  font: 400 17px/1.6 var(--f-body); color: var(--ink); background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-style: normal; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.wrap { position: relative; z-index: 2; width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
.i { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Fita (desenhada pelo JS) ---------- */
.flow { position: absolute; top: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; overflow: visible; }
.flow path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.flow .f-base { stroke: var(--red-deep); }
.flow .f-main { stroke: var(--red); }
.flow .f-sheen { stroke: #ff7a7e; opacity: .55; }
.flow__tip { transition: opacity .3s; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.45em; border-radius: 999px; border: 2px solid transparent;
  font: 700 .95rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 12px 26px -12px rgba(31, 175, 84, .8); }
.btn--wa:hover { background: #189447; }
.btn--line { border-color: currentColor; }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--lilac { background: var(--lilac-deep); color: #fff; }
.btn--lilac:hover { background: var(--lilac); }

/* ---------- Tipografia ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 800 .78rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}
.kicker::before { content: ""; width: 34px; height: 3px; background: currentColor; border-radius: 2px; }
.kicker--light { color: #fff; }
.h2 { font: 400 clamp(2.6rem, 5.6vw, 4.8rem)/.98 var(--f-title); text-transform: uppercase; letter-spacing: .005em; }
.h2 em { color: var(--red); }
.h2--light em { color: #fff; -webkit-text-stroke: 0; text-decoration: underline; text-decoration-thickness: 6px; text-underline-offset: 8px; }
.head { margin-bottom: 64px; max-width: 760px; }
.head--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.head__intro { margin-top: 20px; color: var(--muted); font-size: 1.08rem; max-width: 34em; }
.note {
  position: absolute; z-index: 5; font: 600 1.55rem/1 var(--f-hand); color: var(--ink);
  background: #fffdf5; padding: 14px 18px; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .45);
}
.note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 44px; height: 16px; margin-left: -22px; background: rgba(227, 6, 15, .85); transform: rotate(-4deg); }

.section { position: relative; padding: 140px 0; }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 20px 0; transition: background .3s, padding .3s, box-shadow .3s; }
.header.is-scrolled { background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(0, 0, 0, .07); padding: 10px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { width: 122px; transition: width .3s; }
.header.is-scrolled .header__logo img { width: 104px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a:not(.btn) { font-weight: 600; font-size: .95rem; text-decoration: none; position: relative; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { padding: .75em 1.2em; font-size: .88rem; }
.burger { display: none; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 110px; background: linear-gradient(180deg, #fff 0%, var(--paper) 100%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__eyebrow { font-weight: 700; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.hero__title { font: 400 clamp(3.2rem, 7.4vw, 6.6rem)/.92 var(--f-title); text-transform: uppercase; }
.hero__title .line { display: block; }
.hero__title em { color: var(--red); }
.hero__title .line--small { font-size: .42em; line-height: 1.15; margin-top: .45em; color: var(--ink-2); }
.hero__lead { margin: 28px 0 34px; font-size: 1.17rem; color: var(--ink-2); max-width: 31em; }
.hero__lead strong { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__stage { position: relative; height: 580px; }
.card { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform .7s var(--ease); }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card--a { width: 60%; aspect-ratio: 4/5; right: 2%; top: 0; transform: rotate(4deg); z-index: 2; }
.card--b { width: 44%; aspect-ratio: 9/16; left: 0; top: 40px; transform: rotate(-6deg); z-index: 1; }
.card--c { width: 46%; aspect-ratio: 1; left: 24%; bottom: -14px; transform: rotate(-2deg); z-index: 3; }
.hero__stage:hover .card--a { transform: rotate(6deg) translate(10px, -8px); }
.hero__stage:hover .card--b { transform: rotate(-9deg) translate(-12px, 0); }
.bubble--in {
  position: absolute; z-index: 4; left: -6%; bottom: 120px; max-width: 250px;
  background: #fff; border-radius: 16px 16px 16px 4px; padding: 12px 16px 14px; font-size: .92rem; line-height: 1.35;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45);
  animation: pop .6s 1.4s var(--ease) both;
}
.bubble--in small { display: block; color: var(--wa); font-weight: 700; font-size: .74rem; margin-bottom: 4px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.92); } }
.note--hero { right: -2%; bottom: 40px; transform: rotate(6deg); }

/* ---------- 2. Megui ---------- */
.megui { position: relative; padding: 140px 0; background: var(--lilac-soft); overflow: hidden; }
.megui::before { /* costura */
  content: ""; position: absolute; inset: 22px; border: 2px dashed rgba(94, 67, 134, .28); border-radius: 28px; pointer-events: none;
}
.megui__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.megui__series { display: flex; align-items: center; gap: 12px; font: 700 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--lilac-deep); margin-bottom: 18px; }
.megui__series span { background: var(--lilac-deep); color: #fff; padding: 6px 10px; border-radius: 4px; }
.megui__title { font: 400 clamp(2.4rem, 4.6vw, 4rem)/1 var(--f-title); text-transform: uppercase; color: var(--ink); }
.megui__title em { color: var(--lilac-deep); }
.megui__story { margin: 36px 0; display: grid; gap: 22px; }
.megui__story div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding-top: 18px; border-top: 1px solid rgba(94, 67, 134, .22); }
.megui__story dt { font: 400 1.15rem/1.2 var(--f-title); text-transform: uppercase; color: var(--lilac-deep); }
.megui__story dd { margin: 0; color: var(--ink-2); }
.megui__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.megui__actions .btn--line { color: var(--lilac-deep); }
.megui__actions .btn--line:hover { background: var(--lilac-deep); border-color: var(--lilac-deep); color: #fff; }

.megui__spread { position: relative; height: 640px; }
.sheet { position: absolute; width: 58%; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.sheet img { width: 100%; height: 100%; object-fit: cover; }
.sheet--1 { left: 0; top: 0; transform: rotate(-5deg); z-index: 1; }
.sheet--2 { right: 0; top: 50px; transform: rotate(4deg); z-index: 2; }
.sheet--3 { left: 22%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.sheet:hover, .sheet:focus-visible { transform: rotate(0) scale(1.04); z-index: 4; }
.note--megui { right: 0; bottom: 30px; transform: rotate(-5deg); color: var(--lilac-deep); }
.note--megui::before { background: rgba(139, 107, 184, .85); }

/* ---------- 3. Serviços ---------- */
.services { background: #fff; }
.svc { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc__row {
  display: grid; grid-template-columns: 90px 1fr 220px; gap: 36px; align-items: center;
  padding: 40px 0; border-bottom: 1px solid var(--grey);
}
.svc__n { font: 400 2.6rem/1 var(--f-title); color: var(--red); align-self: start; }
.svc__pain { font: 400 clamp(1.8rem, 3.4vw, 2.9rem)/1.02 var(--f-title); text-transform: uppercase; transition: color .25s; }
.svc__row:hover .svc__pain { color: var(--red); }
.svc__name { margin-top: 10px; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.svc__plain { margin-top: 12px; color: var(--ink-2); max-width: 40em; }
.svc__cta { display: inline-flex; gap: .4em; margin-top: 14px; font-weight: 700; color: var(--red); text-decoration: none; }
.svc__cta span { transition: transform .2s; }
.svc__cta:hover span { transform: translateX(4px); }
.svc__art { width: 220px; aspect-ratio: 4/5; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 34px -22px rgba(0, 0, 0, .55); transform: rotate(2deg); transition: transform .4s var(--ease); }
.svc__row:nth-child(even) .svc__art { transform: rotate(-2deg); }
.svc__row:hover .svc__art { transform: rotate(0) scale(1.04); }
.svc__art img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* computador: lista à esquerda + vitrine fixa à direita */
@media (min-width: 901px) {
  .svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; align-items: start; }
  .js .svc { border-top: 0; }
  .js .svc__row { grid-template-columns: 70px 1fr; padding: 30px 0; border-bottom: 1px solid var(--grey); cursor: pointer; }
  .js .svc__art { display: none; }
  .js .svc__n { font-size: 2rem; color: #cfcfcf; transition: color .3s; }
  .js .svc__pain { color: #c4c4c4; transition: color .35s, transform .45s var(--ease); transform-origin: left; }
  .js .svc__name { transition: color .3s; color: #b5b5b5; }
  .js .svc__more { max-height: 0; overflow: hidden; opacity: 0; transition: max-height .55s var(--ease), opacity .4s; }
  .js .svc__row.is-active .svc__n { color: var(--red); }
  .js .svc__row.is-active .svc__pain { color: var(--ink); transform: translateX(6px); }
  .js .svc__row.is-active .svc__name { color: var(--red); }
  .js .svc__row.is-active .svc__more { max-height: 240px; opacity: 1; }
  .js .svc__row:hover .svc__pain { color: var(--ink); }

  .svc-stage { position: sticky; top: 110px; }
  .svc-stage__frame {
    position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden;
    background: var(--ink); box-shadow: 0 50px 80px -40px rgba(17, 17, 17, .6); transform: rotate(1.5deg);
  }
  .svc-stage__frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 10px #fff; pointer-events: none; }
  .svc-stage__frame img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.08); transition: opacity .55s, transform 1.1s var(--ease);
  }
  .svc-stage__frame img.is-on { opacity: 1; transform: none; }
  .svc-stage__cap { margin-top: 22px; font-size: .82rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .svc-stage__cap b { color: var(--red); font: 400 1.6rem/1 var(--f-title); }
  .svc-stage__cap span { display: block; margin-top: 6px; color: var(--ink); letter-spacing: .04em; }
  .svc-stage__note { top: -22px; right: -26px; transform: rotate(6deg); font-size: 1.3rem; }
  .no-js .svc-stage { display: none; }
}
@media (max-width: 900px) { .svc-stage { display: none; } }

/* ---------- 4. Por que num lugar só ---------- */
.why { background: var(--ink); color: #fff; overflow: hidden; }
.why__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.why__big { font: 400 clamp(2.4rem, 5vw, 4.4rem)/1 var(--f-title); text-transform: uppercase; color: rgba(255, 255, 255, .38); }
.why__big span { display: block; margin-top: .3em; color: #fff; }
.why__text { position: relative; color: rgba(255, 255, 255, .78); font-size: 1.08rem; }
.why__lead { font: 400 clamp(2rem, 3.2vw, 2.8rem)/1.05 var(--f-title); text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.why__lead em { color: var(--red); }
.note--why { position: relative; display: inline-block; margin-top: 34px; transform: rotate(-4deg); }
.why__swap {
  grid-column: 1 / -1; order: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  margin-top: 10px; padding-top: 44px; border-top: 1px solid rgba(255, 255, 255, .14);
}
.why__old {
  position: relative; padding: 12px 20px; border: 1.5px dashed rgba(255, 255, 255, .3); border-radius: 999px;
  color: rgba(255, 255, 255, .5); font-weight: 700; transform: rotate(var(--r, 0));
}
.why__old::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 3px; background: var(--red);
  border-radius: 2px; transform: rotate(-8deg) scaleX(0); transform-origin: left; transition: transform .6s var(--ease);
}
.why__swap.is-in .why__old::after { transform: rotate(-8deg) scaleX(1); }
.why__swap.is-in .why__old:nth-child(2)::after { transition-delay: .15s; }
.why__swap.is-in .why__old:nth-child(3)::after { transition-delay: .3s; }
.why__swap.is-in .why__old:nth-child(4)::after { transition-delay: .45s; }
.no-js .why__old::after { transform: rotate(-8deg); }
.why__arrow { font: 400 2.4rem/1 var(--f-title); color: var(--red); margin: 0 6px; }
.why__new {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 24px 14px 20px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 800; box-shadow: 0 18px 40px -14px rgba(227, 6, 15, .8);
  transform: scale(.9); opacity: .4; transition: transform .6s .7s var(--ease), opacity .6s .7s;
}
.why__new img { height: 22px; width: auto; }
.why__swap.is-in .why__new, .no-js .why__new { transform: none; opacity: 1; }

/* textura de papel bem sutil sobre o site todo */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 5. Trabalhos ---------- */
.works { background: var(--paper); }
.works__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.work { display: grid; gap: 10px; text-align: left; }
.work:nth-child(even) { margin-top: 70px; }
.work__img { display: block; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .6); position: relative; }
.work--tall .work__img { aspect-ratio: 3/4.4; }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.work:hover .work__img img { transform: scale(1.05); }
.work__img::after { content: "Ver peças"; position: absolute; right: 12px; bottom: 12px; background: var(--red); color: #fff; font-weight: 700; font-size: .78rem; padding: 7px 12px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.work:hover .work__img::after, .work:focus-visible .work__img::after { opacity: 1; transform: none; }
.work__cat { margin-top: 8px; font-weight: 800; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--red); }
.work__title { font: 400 1.4rem/1.05 var(--f-title); text-transform: uppercase; }

/* ---------- 6. Conversa ---------- */
.chat { background: #fff; }
.chat__grid { display: grid; grid-template-columns: 1fr 440px; gap: 72px; align-items: start; }
.chat .head { position: sticky; top: 120px; }
.phone { border-radius: 34px; background: #ECE5DD; box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .55), 0 0 0 10px var(--ink); overflow: hidden; }
.phone__top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--ink); color: #fff; }
.phone__top img { width: 40px; height: 40px; border-radius: 50%; }
.phone__top small { display: block; color: #8fe3ad; font-size: .76rem; }
.phone__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 16px 22px; min-height: 520px; font-size: .96rem; line-height: 1.45; }
.msg { max-width: 86%; padding: 9px 13px 10px; border-radius: 12px; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); }
.msg--you { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 3px; }
.msg--maac { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9a9a; animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-2px); } }
.msg.is-new { animation: pop .35s var(--ease) both; }
.faq { margin-top: 14px; padding-top: 14px; border-top: 1px dashed rgba(0, 0, 0, .15); display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.faq::before { content: "Toque numa dúvida:"; width: 100%; text-align: center; font-size: .78rem; color: #6b6b6b; margin-bottom: 2px; }
.faq__q { padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid #cfc6bb; font-size: .86rem; font-weight: 600; text-align: left; transition: background .2s, border-color .2s; }
.faq__q:hover { border-color: var(--wa); }
.faq__q[aria-pressed="true"] { opacity: .45; }
.js .faq__a { display: none; }
.no-js .faq { display: block; }
.no-js .faq__a { margin: 6px 0 12px; background: #fff; padding: 9px 13px; border-radius: 12px; }

/* ---------- 7. Contato (vermelho, papel rasgado: a fita passa por baixo) ---------- */
.contact {
  position: relative; z-index: 3; padding: 160px 0 140px; background: var(--red); color: #fff; margin-top: -40px;
  clip-path: polygon(0 34px, 4% 18px, 9% 30px, 15% 12px, 21% 28px, 27% 8px, 33% 26px, 40% 14px, 46% 30px, 52% 10px, 58% 24px, 64% 6px, 70% 26px, 76% 12px, 82% 30px, 88% 10px, 94% 24px, 100% 8px, 100% 100%, 0 100%);
}
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.contact__copy > p { margin: 26px 0 32px; font-size: 1.1rem; color: rgba(255, 255, 255, .9); max-width: 28em; }
.contact__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .35); }
.contact__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .35); text-decoration: none; transition: padding .25s var(--ease); }
.contact__links a:hover { padding-left: 8px; }
.contact__links span { font-size: .74rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.contact__links b { font-size: 1.02rem; }

.form { display: grid; grid-template-columns: 1fr 260px; gap: 26px; background: var(--ink); border-radius: 26px; padding: 34px; box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .6); }
.form__fields { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { padding: 0; margin-bottom: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.field small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input, .field textarea { width: 100%; background: #1d1d1d; border: 1px solid #333; border-radius: 12px; padding: 13px 15px; color: #fff; font: inherit; font-size: 1rem; }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a7a7a; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--wa); }
.field input[aria-invalid="true"] { border-color: #ff8080; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips label { margin: 0; font-size: .88rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 13px; border: 1px solid #3c3c3c; border-radius: 999px; cursor: pointer; transition: .2s; }
.chips span:hover { border-color: #fff; }
.chips input:checked + span { background: var(--red); border-color: var(--red); }
.chips input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.preview { display: flex; flex-direction: column; gap: 12px; background: #0b141a; border-radius: 18px; padding: 18px 16px; }
.preview__label { font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.preview__bubble { align-self: stretch; background: #005C4B; color: #e9fff8; border-radius: 12px 12px 3px 12px; padding: 12px 14px; font-size: .9rem; line-height: 1.45; white-space: pre-line; min-height: 110px; }
.form__error { color: #ff9b9b; font-size: .9rem; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 3; background: #0b0b0b; color: rgba(255, 255, 255, .7); padding: 70px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 200px 1fr auto; gap: 40px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__grid nav { display: flex; gap: 24px; }
.footer a { text-decoration: none; } .footer a:hover { color: var(--red); }
.footer__bottom { padding-top: 24px; font-size: .86rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; padding: 14px 18px 14px 16px; border-radius: 999px; font-weight: 700; font-size: .92rem; text-decoration: none;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
}
.wa-float .i { width: 26px; height: 26px; }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 10, 10, .96); color: #fff; display: none; grid-template-rows: auto 1fr auto; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: transparent; }
.lightbox__top { display: flex; align-items: center; gap: 16px; padding: 16px 22px; }
.lightbox__title { font: 400 1.1rem/1 var(--f-title); text-transform: uppercase; letter-spacing: .03em; }
.lightbox__count { color: var(--red); font-weight: 800; margin-right: auto; }
.lightbox__close, .lightbox__nav { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-size: 1.2rem; display: grid; place-items: center; flex: none; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__stage { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 20px; min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: min(100%, 880px); object-fit: contain; border-radius: 8px; }
.lightbox__thumbs { display: flex; gap: 8px; padding: 16px 22px 20px; overflow-x: auto; justify-content: center; }
.lightbox__thumbs button { flex: none; width: 52px; height: 64px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; opacity: .45; }
.lightbox__thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Revelar (só títulos e Megui) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .works__grid { grid-template-columns: repeat(2, 1fr); }
  .work:nth-child(even) { margin-top: 0; }
  .form { grid-template-columns: 1fr; }
  .chat__grid { grid-template-columns: 1fr 400px; gap: 48px; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .section, .megui { padding: 96px 0; }
  .burger { display: grid; place-content: center; gap: 7px; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; z-index: 61; }
  .burger span { display: block; width: 20px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .nav { position: fixed; inset: 0; z-index: 60; flex-direction: column; justify-content: center; gap: 20px; background: var(--red); clip-path: circle(0 at calc(100% - 46px) 42px); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 46px) 42px); visibility: visible; transition: clip-path .5s var(--ease); }
  .nav > a:not(.btn) { font: 400 2.4rem/1 var(--f-title); text-transform: uppercase; color: #fff; }
  .nav > a:not(.btn)::after { background: #fff; }
  body.menu-open { overflow: hidden; }

  .hero { padding: 110px 0 80px; }
  .hero__grid, .megui__grid, .why__grid, .chat__grid, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__stage { height: 430px; width: min(100%, 440px); margin-inline: auto; }
  .bubble--in { left: 0; bottom: 70px; }
  .megui__spread { height: 470px; width: min(100%, 460px); margin-inline: auto; }
  .megui::before { inset: 10px; border-radius: 18px; }
  .svc__row { grid-template-columns: 54px 1fr 110px; gap: 16px; padding: 30px 0; align-items: start; }
  .svc__n { font-size: 1.8rem; }
  .svc__art { width: 110px; }
  .chat .head { position: static; }
  .head--row { flex-direction: column; align-items: start; }
  .footer__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 36px, var(--wrap)); }
  .hero__title { font-size: clamp(2.8rem, 14vw, 3.6rem); }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__stage { height: 360px; }
  .note { font-size: 1.25rem; padding: 10px 13px; }
  .megui__story div { grid-template-columns: 1fr; gap: 6px; }
  .megui__actions .btn { flex: 1 1 100%; }
  .megui__spread { height: 380px; }
  .svc__row { grid-template-columns: 1fr 92px; }
  .svc__n { grid-column: 1 / -1; font-size: 1.5rem; }
  .svc__art { width: 92px; grid-row: 2; grid-column: 2; }
  .svc__text { grid-row: 2; grid-column: 1; }
  .works__grid { gap: 16px; }
  .work__title { font-size: 1.1rem; }
  .phone__body { min-height: 0; }
  .form { padding: 22px 18px; }
  .wa-float span { display: none; }
  .wa-float { padding: 15px; }
  .lightbox__stage { position: relative; padding-bottom: 66px; }
  .lightbox__nav { position: absolute; bottom: 8px; }
  #lb-prev { left: calc(50% - 58px); } #lb-next { right: calc(50% - 58px); }
  .lightbox__thumbs { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
.wa-float.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }

/* =========================================================
   Página do capítulo Megui (/megui/)
   ========================================================= */
.page-megui { background: var(--lilac-soft); }
.chapter-hero { position: relative; padding: 150px 0 110px; }
.chapter-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.chapter-hero__title { font: 600 clamp(5rem, 13vw, 10rem)/.85 "Cormorant Garamond", Georgia, serif; color: var(--lilac-deep); margin: 8px 0 6px; }
.dropcap { color: var(--red); }
.chapter-hero__sub { font: italic 600 clamp(1.4rem, 2.4vw, 2rem)/1.2 "Cormorant Garamond", Georgia, serif; color: var(--ink-2); }
.chapter-hero__lead { margin: 26px 0; font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.chapter-hero__facts { display: grid; gap: 14px; margin: 0; }
.chapter-hero__facts div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-top: 14px; border-top: 1px solid rgba(94, 67, 134, .22); }
.chapter-hero__facts dt { font: 400 1.05rem/1.3 var(--f-title); text-transform: uppercase; color: var(--lilac-deep); }
.chapter-hero__facts dd { margin: 0; color: var(--ink-2); }
.chapter-hero__facts a { color: var(--lilac-deep); font-weight: 700; }
.chapter-hero__cover { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(3deg); transition: transform .5s var(--ease); }
.chapter-hero__cover:hover { transform: rotate(0) scale(1.02); }

.chapter { padding: 40px 0 140px; }
.chapter__page { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 60px 0; }
.chapter__page:nth-child(even) .chapter__img { order: 2; }
.chapter__img { border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(-1.5deg); transition: transform .5s var(--ease); }
.chapter__page:nth-child(even) .chapter__img { transform: rotate(1.5deg); }
.chapter__img:hover { transform: rotate(0) scale(1.02); }
.chapter__n { font: 700 .78rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.chapter__text h2 { font: 600 clamp(2rem, 3.6vw, 3.1rem)/1.02 "Cormorant Garamond", Georgia, serif; color: var(--lilac-deep); margin-bottom: 18px; }
.chapter__text p:not(.chapter__n) { font-size: 1.08rem; color: var(--ink-2); max-width: 30em; }
.chapter__note { display: inline-block; margin-top: 22px; font: 600 1.45rem/1.1 var(--f-hand); color: var(--red); transform: rotate(-2deg); }

.chapter-end { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.chapter-end__img { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .6); transform: rotate(-3deg); }
.chapter-end__lead { margin: 24px 0 30px; font-size: 1.1rem; color: rgba(255, 255, 255, .9); }
.contact .btn--line { color: #fff; }
.contact .btn--line:hover { background: #fff; color: var(--red); border-color: #fff; }

@media (max-width: 900px) {
  .chapter-hero { padding: 110px 0 60px; }
  .chapter-hero__grid, .chapter__page, .chapter-end { grid-template-columns: 1fr; gap: 32px; }
  .chapter__page:nth-child(even) .chapter__img { order: 0; }
  .chapter__page { padding: 40px 0; }
  .chapter-hero__cover, .chapter-end__img { width: min(100%, 420px); }
  .chapter-hero__facts div { grid-template-columns: 1fr; gap: 4px; }
}

/* =========================================================
   ESTEIRA DE PRODUTOS (logo depois da abertura)
   A fita vermelha passa por baixo dela.
   ========================================================= */
.belt {
  position: relative; z-index: 3; overflow: hidden;
  padding: 110px 0 70px; color: #fff;
  background:
    radial-gradient(1200px 420px at 50% 115%, rgba(227, 6, 15, .28), transparent 70%),
    linear-gradient(#141414, #0b0b0b);
}
.belt .kicker--light { color: var(--red); }
.belt .h2 em { color: var(--red); text-decoration: none; }
.belt__head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.belt__lead { max-width: 25em; color: rgba(255, 255, 255, .72); font-size: 1.05rem; }

.belt__viewport {
  position: relative; padding: 18px 0 0;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.belt__viewport.is-dragging { cursor: grabbing; }
.belt__track { display: flex; gap: 26px; width: max-content; padding: 0 26px 34px; will-change: transform; }

/* a "lona" da esteira: listras que andam junto com os cards */
.belt__floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 58px; z-index: -1;
  background: repeating-linear-gradient(90deg, #232323 0 2px, #191919 2px 46px);
  background-position: var(--belt-x, 0px) 0;
  box-shadow: inset 0 14px 18px -10px rgba(0, 0, 0, .9), inset 0 -2px 0 #2c2c2c;
}
.belt__floor::before, .belt__floor::after {
  content: ""; position: absolute; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(90deg, #3a3a3a 0 10px, #111 10px 20px);
  background-position: var(--belt-x, 0px) 0;
}
.belt__floor::before { top: -3px; }
.belt__floor::after { bottom: -3px; }

.bcard {
  position: relative; flex: none; display: flex; flex-direction: column;
  width: clamp(270px, 26vw, 340px); text-align: left; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: 18px; padding: 10px 10px 16px;
  box-shadow: 0 26px 40px -22px rgba(0, 0, 0, .9);
  transition: transform .35s var(--ease), box-shadow .35s;
  -webkit-user-drag: none;
}
.bcard:nth-child(3n+2) { transform: rotate(-1.2deg); }
.bcard:nth-child(3n) { transform: rotate(1deg) translateY(6px); }
.bcard:hover, .bcard:focus-visible { transform: translateY(-10px) rotate(0); box-shadow: 0 40px 50px -24px rgba(227, 6, 15, .55); }
.bcard img { -webkit-user-drag: none; pointer-events: none; }

.bcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 11px; background: #eee; }
.bcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard__media img { transform: scale(1.05); }
.bcard__media--browser { padding-top: 22px; background: #e9e9ec; }
.bcard__media--browser::before {
  content: ""; position: absolute; top: 8px; left: 10px; width: 6px; height: 6px; border-radius: 50%;
  background: #ff5f57; box-shadow: 10px 0 #febc2e, 20px 0 #28c840;
}
.bcard__media--browser img { border-radius: 4px 4px 0 0; object-position: top; }

.bcard__tag {
  position: absolute; top: 0; left: 18px; transform: translateY(-50%) rotate(-3deg);
  background: var(--red); color: #fff; padding: 7px 12px 6px;
  font: 400 1.05rem/1 var(--f-title); letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 8px 16px -8px rgba(227, 6, 15, .9);
}
.bcard__body { display: block; padding: 16px 6px 0; font-size: .93rem; line-height: 1.45; color: var(--ink-2); }
.bcard__body b { display: block; margin-bottom: 4px; font: 800 1.12rem/1.2 var(--f-body); color: var(--ink); }
.bcard__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: auto 6px 0; padding-top: 14px; font-size: .8rem; font-weight: 700;
}
.bcard__foot i { font-style: normal; color: var(--muted); font-weight: 600; }
.bcard__foot span { color: var(--red); }

/* mini sistema ao vivo (feito em CSS) */
.bcard__media--app { background: linear-gradient(135deg, #f3f3f5, #e4e4e8); padding: 14px; }
.app { display: flex; flex-direction: column; height: 100%; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, .5); font-size: 9px; line-height: 1.2; }
.app__bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #111; }
.app__bar i { width: 6px; height: 6px; border-radius: 50%; background: #444; }
.app__bar i:first-child { background: var(--red); }
.app__bar em { margin-left: 8px; color: #9a9a9a; font-size: 8px; }
.app__body { flex: 1; display: flex; min-height: 0; }
.app__side { display: flex; flex-direction: column; gap: 6px; width: 30px; padding: 8px 7px; background: #f4f4f6; }
.app__side b { height: 12px; border-radius: 3px; background: var(--red); }
.app__side s { height: 6px; border-radius: 3px; background: #d9d9de; }
.app__side s.on { background: #111; }
.app__main { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px; min-width: 0; }
.app__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.app__kpis > span { padding: 5px 6px; border-radius: 5px; background: #f6f6f8; }
.app__kpis small { display: block; color: #888; font-size: 7px; }
.app__kpis strong { font-size: 11px; color: #111; }
.app__kpis > span:first-child { background: var(--red); }
.app__kpis > span:first-child small, .app__kpis > span:first-child strong { color: #fff; }
.app__chart { flex: 1; display: flex; align-items: end; gap: 4px; min-height: 30px; padding: 4px 2px 0; border-bottom: 1px solid #eee; }
.app__chart i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: #ffd5d7; transform-origin: bottom; animation: bar 3.2s var(--ease) infinite alternate; }
.app__chart i:last-child { background: var(--red); }
.app__chart i:nth-child(2) { animation-delay: -.4s; }
.app__chart i:nth-child(3) { animation-delay: -1.1s; }
.app__chart i:nth-child(4) { animation-delay: -.7s; }
.app__chart i:nth-child(5) { animation-delay: -1.6s; }
.app__chart i:nth-child(6) { animation-delay: -2s; }
@keyframes bar { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.app__rows { display: flex; flex-direction: column; gap: 3px; }
.app__rows > span { display: flex; justify-content: space-between; align-items: center; padding: 3px 4px; border-radius: 4px; background: #fafafa; }
.app__rows em { color: #333; font-weight: 600; }
.app__rows u { text-decoration: none; padding: 1px 5px; border-radius: 99px; font-size: 7px; font-weight: 700; }
.app__rows .new { background: #ffe1e2; color: var(--red); }
.app__rows .prod { background: #fff3d6; color: #9a6a00; }
.app__rows .ok { background: #dcf5e4; color: #157a3a; }

.belt__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 34px; }
.belt__hint { font: 600 1.45rem/1 var(--f-hand); color: rgba(255, 255, 255, .6); }

@media (max-width: 900px) {
  .belt { padding: 84px 0 56px; }
  .belt__head { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 40px; }
  .bcard { width: 264px; }
  .belt__track { gap: 18px; }
  .belt__hint { font-size: 1.25rem; }
}
@media (max-width: 560px) {
  .belt__foot { flex-direction: column; align-items: stretch; text-align: center; }
}
/* sem animação: vira uma faixa que a pessoa rola de lado */
@media (prefers-reduced-motion: reduce) {
  .belt__viewport { overflow-x: auto; cursor: auto; -webkit-mask: none; mask: none; }
  .app__chart i { animation: none; }
}
.no-js .belt__viewport { overflow-x: auto; }
