/* Mendes, Kato & Sasaki — landing golpe do Pix.
   Inspirada nos sites dos grandes escritórios: foto grande, serifa nos títulos, branco, navy e dourado. Mobile first. */
:root {
  --white: #ffffff;
  --mist: #f3f4f6;        /* faixas claras */
  --mist-2: #e6e9ee;
  --navy: #0e1a2e;        /* navy do logo */
  --navy-2: #16243d;
  --navy-deep: #0a1322;
  --ink: #172033;
  --muted: #566074;
  --on-navy: #eef1f5;
  --on-navy-muted: #b6bfcd;
  --gold: #c39a45;        /* ouro do quadro do escritório */
  --gold-hover: #d3ac5a;
  --gold-text: #8a6820;

  --m: clamp(20px, 4vw, 64px);
  --max: 1240px;
  --gap: clamp(88px, 10vw, 160px);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --step-small: 0.9375rem;
  --step-body: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-head: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem);
  --step-display: clamp(2.5rem, 1.4rem + 4vw, 5rem);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--white); color: var(--ink);
  font: 400 var(--step-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: var(--step-head); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px; border: 0; border-radius: 2px;
  font: 600 var(--step-body)/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
/* CTA do WhatsApp: verde da marca, brilho que passa e pulso, pedidos do cliente */
.btn-wa {
  position: relative; overflow: hidden; isolation: isolate;
  background: #25d366; color: #052e16; font-weight: 700;
  animation: wa-pulse 2.4s ease-out infinite;
}
.btn-wa svg { width: 24px; height: 24px; flex: none; }
.btn-wa:hover { background: #2ee673; }
.btn-wa::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%); /* taste-skill-ignore: brilho pedido pelo cliente */
  transform: translateX(-130%); animation: wa-sheen 3.2s ease-in-out infinite;
}
@keyframes wa-sheen { 0%, 55% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } /* taste-skill-ignore: pulso pedido pelo cliente */
  70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } /* taste-skill-ignore */
}
.btn-big { min-height: 64px; padding: 18px 34px; font-size: 1.125rem; }
.hero-wa { margin-top: 28px; }

.link {
  background: none; border: 0; padding: 12px 4px; cursor: pointer; font: inherit; color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-underline-offset .2s var(--ease);
}
.link:hover { text-underline-offset: 8px; }

/* ---------- Topo ---------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px max(var(--m), calc((100% - var(--max)) / 2 + var(--m))); color: var(--white);
  transition: background-color .35s var(--ease), color .35s var(--ease), padding .35s var(--ease);
}
.top.is-solid { background: var(--white); color: var(--navy); padding-top: 10px; padding-bottom: 10px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-mark { width: 38px; height: 30px; flex: none; }
.logo-text { display: grid; line-height: 1.1; }
.logo-name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.logo-sub { font-size: var(--step-small); opacity: .8; }
.logo-long, .logo-sub { display: none; } /* no celular, nome curto numa linha */
.logo-name { white-space: nowrap; }
.top-nav { display: none; gap: 32px; font-size: var(--step-small); font-weight: 500; }
.top-nav a { text-decoration: none; position: relative; padding: 6px 0; }
.top-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top-nav a:hover::after { transform: scaleX(1); }
.top-cta { min-height: 44px; padding: 10px 16px; font-size: var(--step-small); white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
  animation: slowzoom 22s ease-in-out infinite alternate;
}
@keyframes slowzoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(10, 19, 34, .78); z-index: 1; } /* véu navy sobre a foto */
.hero-inner { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto; padding: 112px var(--m) 48px; display: grid; gap: 32px; }
.hero h1 { font-size: var(--step-display); line-height: 1; }
.hero-claim { margin-top: 18px; font-family: var(--serif); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.15; font-style: italic; font-weight: 500; color: #f1dcae; max-width: 26ch; }
.hero-lead { margin-top: 18px; max-width: 54ch; color: var(--on-navy-muted); }
.hero-points { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 10px; font-weight: 500; }
.hero-points li, .chances li { position: relative; padding-left: 30px; }
.hero-points li::before, .chances li::before {
  content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 10px;
  border-left: 3px solid var(--gold); border-top: 3px solid var(--gold); border-radius: 1px;
  transform: rotate(45deg); /* a divisa do logo como marcador */
}
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-claim { animation-delay: .1s; }
.hero-lead { animation-delay: .2s; }
.hero-points { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Formulário ---------- */
.quiz { background: var(--white); color: var(--ink); padding: 28px 22px; border-radius: 2px; animation: rise 1s var(--ease) .35s both; scroll-margin-top: 90px; }
.quiz-head { display: flex; align-items: center; gap: 14px; }
.quiz-mark { width: 40px; flex: none; }
.chev { stroke: var(--mist-2); transition: stroke .6s var(--ease); }
.chev.is-lit { stroke: var(--gold); }
.quiz h2 { font-size: 1.625rem; line-height: 1.05; }
.quiz-intro { margin-top: 12px; color: var(--muted); font-size: var(--step-small); }
.quiz-form { margin-top: 22px; }
.step, .group { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .step { display: none; }
.js .step.is-on { display: block; animation: rise .5s var(--ease); }
.step + .step { margin-top: 28px; }
.js .step + .step { margin-top: 0; }
.field + .field { margin-top: 18px; }
.field label:not(.choice), .group legend { display: block; margin-bottom: 8px; font-weight: 600; font-size: var(--step-small); padding: 0; }
.quiz input[type="text"], .quiz input[type="tel"] {
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--mist); color: var(--ink);
  border: 1.5px solid var(--mist-2); border-radius: 2px;
  font: 500 var(--step-body) var(--sans); transition: border-color .2s, background-color .2s;
}
.quiz input::placeholder { color: #8a93a3; }
.quiz input:focus { outline: none; border-color: var(--gold); background: var(--white); }
.quiz input[aria-invalid="true"] { border-color: #c2412d; }
.choices { display: grid; gap: 8px; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 8px 10px;
  background: var(--mist); border: 1.5px solid var(--mist-2); border-radius: 2px;
  text-align: center; line-height: 1.2; font-weight: 500; font-size: var(--step-small);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.choice:hover span { transform: translateY(-2px); border-color: var(--gold); }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.field-error { margin-top: 6px; color: #b23a26; font-size: var(--step-small); }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 20px; }
.step-actions .btn { flex: 1 1 100%; }
.btn-cta { min-height: 62px; text-wrap: balance; }
.step-actions .btn.btn-cta { flex: 1 1 100%; min-width: 0; } /* texto longo: ocupa o card e quebra linha em vez de estourar */
.quiz-note { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.quiz-note svg { display: inline-block; width: 14px; height: 14px; margin: 0 6px -2px 0; color: var(--gold-text); }

/* ---------- Faixa de fundamentos ---------- */
.basis { max-width: var(--max); margin: 0 auto; padding: 56px var(--m); display: grid; gap: 28px; }
.basis-big { font-family: var(--serif); font-size: 1.875rem; font-weight: 600; line-height: 1; color: var(--navy); }
.basis-item p:last-child { margin-top: 8px; color: var(--muted); max-width: 36ch; }

/* ---------- O prazo ---------- */
.split { max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--m) 0; display: grid; gap: 40px; }
.split-media { margin: 0; overflow: hidden; }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease); }
.split-media.is-in img { transform: scale(1.03); }
.split-text p { margin-top: 18px; max-width: 58ch; }
.split-text h3 { margin-top: 36px; font: 600 var(--step-lead)/1.3 var(--sans); letter-spacing: -0.01em; }
.chances { list-style: none; padding: 0; margin: 18px 0 32px; display: grid; gap: 14px; }
.chances li { padding: 16px 18px 16px 44px; background: var(--mist); }
.chances li::before { left: 18px; top: 1.45em; }
.chances strong { color: var(--navy); }

/* ---------- Como funciona ---------- */
.steps { margin-top: var(--gap); background: var(--mist); padding: var(--gap) var(--m); }
.steps-head, .steps-list { max-width: var(--max); margin-left: auto; margin-right: auto; }
.steps-head p { margin-top: 12px; color: var(--muted); font-size: var(--step-lead); }
.steps-list { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 16px; }
.steps-list li { background: var(--white); padding: 32px 28px; transition: transform .35s var(--ease); }
.steps-list li:hover { transform: translateY(-4px); }
.steps-list h3 { font-size: 1.875rem; }
.steps-list p { margin-top: 10px; color: var(--muted); }

/* ---------- Equipe ---------- */
.team { max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--m) 0; }
.team-head p { margin-top: 14px; max-width: 56ch; color: var(--muted); font-size: var(--step-lead); line-height: 1.45; }
.team-grid { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
.person-photo { overflow: hidden; }
.person-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; transition: transform .8s var(--ease); }
.person:hover .person-photo img { transform: scale(1.05); }
.person h3 { margin-top: 16px; font-size: 1.875rem; }
.person-role { margin-top: 4px; color: var(--gold-text); font-weight: 600; font-size: var(--step-small); }
.person p:not(.person-role) { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.team-card { grid-column: 1 / -1; margin-top: 24px; background: var(--navy); color: var(--on-navy); padding: 32px 28px; display: grid; align-content: start; gap: 4px; }
.team-card-name { font-size: 1.875rem; color: var(--white); }
.team-card-role { color: var(--gold); font-weight: 600; font-size: var(--step-small); }
.team-card dl { margin-top: 24px; display: grid; gap: 14px; font-size: var(--step-small); }
.team-card dt { color: var(--on-navy-muted); }
.team-card dd { margin: 2px 0 0; font-weight: 500; }

/* ---------- Aviso anti-golpe ---------- */
.alert { margin: var(--gap) auto 0; max-width: var(--max); padding: 0 var(--m); display: grid; }
.alert-bg { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 50%; }
.alert-text { background: var(--navy); color: var(--on-navy); padding: 32px 28px; }
.alert-text h2 { color: var(--white); }
.alert-text p { margin-top: 14px; max-width: 54ch; color: var(--on-navy-muted); }
.alert-text strong { color: var(--gold); }

/* ---------- Dúvidas ---------- */
.faq { max-width: var(--max); margin: 0 auto; padding: var(--gap) var(--m) 0; display: grid; gap: 36px; }
.faq-head p { margin-top: 12px; color: var(--muted); }
.faq-head .btn { margin-top: 24px; }
.qa { display: grid; gap: 8px; }
details { background: var(--mist); padding: 0 22px; transition: background-color .25s; }
details[open] { background: var(--mist-2); }
summary {
  position: relative; cursor: pointer; list-style: none; min-height: 64px;
  display: flex; align-items: center; padding: 14px 40px 14px 0;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.15; color: var(--navy);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 0 20px; max-width: 62ch; color: var(--ink); }
details[open] p { animation: rise .45s var(--ease); }

/* ---------- Fechamento ---------- */
.close { margin-top: var(--gap); background: var(--navy); color: var(--on-navy); padding: var(--gap) var(--m); text-align: center; display: grid; justify-items: center; }
.close h2 { font-size: clamp(3rem, 2rem + 5vw, 6.5rem); color: var(--white); line-height: .95; }
.close p { margin-top: 20px; font-size: var(--step-lead); color: var(--on-navy-muted); max-width: 34ch; }
.close-actions { margin-top: 36px; display: grid; justify-items: center; gap: 10px; width: 100%; }
.close-actions .btn { width: min(100%, 460px); }
.close-actions .link { color: var(--on-navy-muted); }
.close-ig, .team-ig, .person-ig, .foot-social a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: color .2s, transform .2s var(--ease); }
.close-ig svg, .team-ig svg, .person-ig svg, .foot-social svg { width: 20px; height: 20px; flex: none; }
.close-ig { margin-top: 40px; color: var(--on-navy); font-weight: 600; }
.close-ig:hover, .team-ig:hover { color: var(--gold); transform: translateY(-2px); }
.person-ig { margin-top: 12px; color: var(--navy); font-weight: 600; font-size: var(--step-small); }
.person-ig:hover { color: var(--gold-text); }
.team-ig { margin-top: 22px; color: var(--white); font-weight: 600; font-size: var(--step-small); }
.foot-social { margin-top: 12px; display: grid; gap: 8px; }

/* ---------- Rodapé ---------- */
.foot { background: var(--navy-deep); color: var(--on-navy-muted); padding: 64px max(var(--m), calc((100% - var(--max)) / 2 + var(--m))) 96px; display: grid; gap: 32px; font-size: var(--step-small); }
.foot-brand { color: var(--on-navy); }
.foot-brand .logo-mark { color: var(--gold); margin-bottom: 12px; }
.foot-h { color: var(--on-navy); font-weight: 600; margin-bottom: 6px; }
.foot a { text-decoration: none; transition: color .2s; }
.foot a:hover { color: var(--gold); }
.foot-legal { font-size: var(--step-small); }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Aba fixa do WhatsApp */
.wa-tab {
  position: fixed; right: 12px; bottom: 12px; z-index: 25;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 54px; min-height: 54px; padding: 0; border-radius: 2px;
  background: #25d366; color: #052e16; font-weight: 700; text-decoration: none;
  transform: translateY(calc(100% + 40px)); transition: transform .5s var(--ease), background-color .2s;
}
.wa-tab svg { width: 26px; height: 26px; }
.wa-tab span { display: none; } /* no celular só o ícone, para não cobrir texto */
.wa-tab.is-on { transform: none; }
.wa-tab:hover { background: #2ee673; }
html:not(.js) .wa-tab { transform: none; }

/* Entradas ao rolar */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  .logo-long, .logo-sub { display: inline; }
  .logo-sub { display: block; }
  .logo-short { display: none; }
  .hero-inner { padding-top: 132px; padding-bottom: 72px; }
  .quiz { padding: 36px 34px; }
  .quiz h2 { font-size: 1.875rem; }
  .quiz-mark { width: 48px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .choices-2 { grid-template-columns: 1fr 1fr; }
  .step-actions .btn { flex: 0 0 auto; }
  .basis { grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .steps-list { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .alert { grid-template-columns: 5fr 7fr; }
  .alert-bg { aspect-ratio: auto; height: 100%; }
  .alert-text { padding: 48px 44px; display: grid; align-content: center; }
  .foot { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding-bottom: 48px; }
  .foot-legal { grid-column: 1 / -1; }
  .wa-tab { right: 20px; bottom: 20px; width: auto; padding: 0 20px; }
  .wa-tab span { display: inline; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .top-nav { display: flex; }
  .hero { min-height: 100svh; display: grid; align-items: center; }
  .hero-inner { grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; padding-top: 128px; width: 100%; }
  .hero-bg { object-position: 50% 30%; }
  .choices { grid-template-columns: 1fr; }
  .choices-2 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
  .team-grid { grid-template-columns: 1fr 1fr 1fr; }
  .team-card { grid-column: auto; align-content: end; margin-top: 0; }
  .faq { grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
  .faq-head { position: sticky; top: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Termos e privacidade ---------- */
.doc { max-width: 720px; padding: 72px var(--m) 0; margin: 0 auto; }
.doc h1 { font-size: var(--step-head); }
.doc h1 + p { margin-top: 12px; color: var(--muted); }
.doc .doc-part { margin-top: 96px; font-size: var(--step-head); }
.doc h2 { margin-top: 40px; font-size: 1.75rem; }
.doc p { margin-top: 12px; }
.doc-bar { display: flex; justify-content: space-between; align-items: center; padding: 20px var(--m); font-size: var(--step-small); background: var(--navy); color: var(--white); }
.doc-bar a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; }
.doc-bar svg { width: 30px; height: 24px; }
.doc + .foot { margin-top: var(--gap); }
.foot-cols { display: contents; }
