/* =========================================================
   Victoria Lage Advocacia — v2
   Sistema de design conforme design_handoff_victoria_lage/README.md
   ========================================================= */

/* Inter hospedada no próprio site (variável, pesos 300–700): sem requisição ao
   Google Fonts, o que elimina o envio do IP do visitante ao Google e ganha velocidade. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent:     #A07A44;  /* dourado — só réguas, ícones, estrelas, itálico grande */
  --accent-ink: #7C5A2C;  /* dourado escuro — obrigatório em texto ≤16px */
  --accent-deep:#6A4D26;  /* dourado p/ fundo de botão em hover (contraste AA c/ branco) */
  --ink:        #1E2A36;
  --ink-2:      #4E5964;
  --bg:         #EFEDE6;
  --bg-2:       #E5E1D6;
  --line:       rgba(30, 42, 54, .16);

  /* sobre fundo escuro */
  --on-dark:      #EFEDE6;
  --on-dark-2:    rgba(239, 237, 230, .78);
  --on-dark-3:    rgba(239, 237, 230, .64);
  --on-dark-line: rgba(239, 237, 230, .22);
  --gold-light:   #C9A470;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; }
input, select, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
  transition: top 160ms var(--ease);
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- primitivos ---------- */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 72px);
}

.section { padding-block: clamp(44px, 5vw, 76px); }
.section--ruled { border-top: 1px solid var(--line); }
.section--tint { background: var(--bg-2); }
.section--dark { background: var(--ink); color: var(--on-dark); }

/* micro-rótulo: o elemento de sistema mais recorrente */
.label {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  line-height: 1.6;
}
.label--gold { color: var(--accent-ink); }
.label--sm { font-size: 10.5px; letter-spacing: .16em; }

.rule-gold {
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--accent);
  flex: 0 0 auto;
}

h1, .h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600; line-height: 1.08; letter-spacing: -.03em;
}
h2, .h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  font-weight: 600; line-height: 1.08; letter-spacing: -.03em;
}
em.gold { font-style: italic; color: var(--accent); }

.lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.body { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

/* botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.btn--dark { background: var(--ink); color: #F4F2EC; }
.btn--dark:hover, .btn--dark:focus-visible { background: var(--accent-deep); color: #fff; }
.btn--light { background: var(--on-dark); color: var(--ink); }
.btn--light:hover, .btn--light:focus-visible { background: var(--gold-light); color: #1a1208; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }

.btn-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7BC47F; flex: 0 0 auto;
}

.link-underline {
  font-size: 15px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.link-underline:hover, .link-underline:focus-visible {
  color: var(--ink); border-color: var(--accent);
}
.link-gold {
  font-size: 14px; color: var(--accent-ink);
  border-bottom: 1px solid var(--line); padding-bottom: 3px;
  transition: border-color 200ms var(--ease);
}
.link-gold:hover, .link-gold:focus-visible { border-color: var(--accent); }

/* grade mestra: rail + corpo */
.rail-grid {
  display: flex; flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
}
.rail { flex: 1 1 220px; max-width: 300px; }
.rail-sticky { position: sticky; top: 96px; }
.rail-body { flex: 5 1 480px; min-width: 0; }
.rail h2 { margin-top: 14px; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  padding: 14px clamp(16px, 4vw, 40px);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(239, 237, 230, .94), rgba(239, 237, 230, .72));
}
.site-header__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 12px clamp(14px, 2.5vw, 24px);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { display: block; height: clamp(34px, 5vw, 52px); width: auto; }

.site-nav {
  display: flex; flex-wrap: wrap;
  gap: 10px clamp(14px, 2vw, 22px);
  margin-left: auto;
  font-size: clamp(13px, 1.3vw, 14px);
  color: var(--ink-2);
}
.site-nav a { transition: color 200ms var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); }

/* header sem nav (página de obrigado): o CTA vai para a direita sozinho */
.site-header__inner > .logo + .btn { margin-left: auto; }

/* Em telas estreitas a nav sai: sobram logo + CTA, sem quebrar em várias linhas */
/* botão de menu: só existe no celular */
.nav-toggle {
  display: none;
  align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
}
.nav-toggle::after {
  content: ""; width: 12px; height: 8px;
  background:
    linear-gradient(currentColor, currentColor) top / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) bottom / 100% 1.5px no-repeat;
}
.site-header.is-open .nav-toggle::after {
  height: 1.5px; background: currentColor;
}

@media (max-width: 800px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; order: 3;
    width: 100%; margin-left: 0; gap: 0; padding-top: 6px;
  }
  .site-header.is-open .site-nav a {
    padding: 13px 0; font-size: 16px; color: var(--ink);
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
}

/* ---------- hero ---------- */

.hero { padding: clamp(32px, 4vw, 56px) 0 clamp(44px, 5vw, 72px); }
.hero__inner {
  display: flex; flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: flex-end;
}
.hero__text { flex: 4 1 520px; min-width: 0; }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: .2em; }
/* frase longa: medida mais larga e corpo um pouco menor para caber em 3-4 linhas */
.hero h1 { margin-top: 18px; max-width: 19ch; font-size: clamp(30px, 3.7vw, 50px); }
.hero__lede { margin-top: 18px; max-width: 46ch; }
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 26px; margin-top: 26px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, auto));
  justify-content: start;
  gap: 18px clamp(24px, 4vw, 44px);
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 600px;
}
.stat { display: flex; align-items: baseline; gap: 10px; }
.stat__num {
  font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -.035em;
}
.stat__stars {
  font-size: 15px; color: var(--accent); letter-spacing: .1em; line-height: 1;
}

.hero__figure { flex: 2 1 280px; max-width: 360px; min-width: 0; width: 100%; }
.video-frame {
  position: relative; width: 100%;
  aspect-ratio: 4 / 5; max-height: 62vh;
  background: var(--bg-2);
  overflow: hidden; border-radius: 14px; isolation: isolate;
}
.video-frame video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 16%; /* mantém o rosto no enquadramento 4:5 */
  display: block;
  opacity: 0; transform: scale(1.04);
  transition: opacity 900ms var(--ease), transform 1600ms var(--ease);
}
.video-frame video.is-ready { opacity: 1; transform: scale(1); }
.video-frame__shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, rgba(30, 42, 54, .34), transparent);
  pointer-events: none; z-index: 1;
}
.video-frame__rule {
  position: absolute; left: 16px; bottom: 16px;
  width: 38px; height: 1px; background: var(--accent); z-index: 2;
}
/* pausa manual do vídeo (WCAG 2.2.2: movimento em loop precisa poder parar) */
.video-toggle {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; cursor: pointer; color: #fff;
  background: rgba(30, 42, 54, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background 200ms var(--ease);
}
.video-toggle:hover, .video-toggle:focus-visible { background: rgba(30, 42, 54, .85); }
.video-toggle:focus-visible { outline-color: #fff; }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle [data-icon="play"] { display: none; }
.video-toggle[data-state="paused"] [data-icon="play"] { display: block; }
.video-toggle[data-state="paused"] [data-icon="pause"] { display: none; }

.hero__caption {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px;
}

/* ---------- 01 casos ---------- */

.cases { width: 100%; }
.cases__row {
  display: flex; flex-wrap: wrap;
  gap: 6px clamp(16px, 2.5vw, 28px);
  padding: clamp(18px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--line);
  transition: background 220ms var(--ease);
}
.cases__row:not(.cases__row--head):hover { background: var(--bg-2); }
.cases__row--head {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--ink);
}
/* sem isto, .cases__action (15,5px) vence .label (11px) por vir depois
   na folha, e "Medida jurídica" sai maior que "Sua situação" */
.cases__row--head [role="columnheader"] {
  font-size: 11px; letter-spacing: .16em; line-height: 1.6;
}
.cases__num { flex: 0 0 30px; color: var(--accent-ink); }
.cases__what { flex: 1 1 260px; min-width: 0; }
.cases__what h3 {
  font-size: clamp(19px, 1.8vw, 22px);
  font-weight: 600; line-height: 1.25; letter-spacing: -.015em;
}
.cases__what p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cases__action { flex: 1 1 240px; min-width: 0; font-size: 15.5px; line-height: 1.5; }
.cases__action .label { display: block; margin-top: 6px; }

.also { margin-top: clamp(24px, 3vw, 34px); }
.also__list { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.also__list li {
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13.5px; color: var(--ink-2);
}

/* ---------- 02 metodologia ---------- */

.method__head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 16px clamp(24px, 4vw, 48px); align-items: flex-end;
}
.method__head p.lede { max-width: 34ch; }
.method__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(30px, 4vw, 48px);
}
.step__track { display: flex; align-items: center; gap: 0; }
.step__dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); flex: 0 0 auto;
  box-shadow: 0 0 0 4px var(--bg-2), 0 0 0 5px var(--accent);
}
.step__line { flex: 1 1 auto; height: 1px; background: linear-gradient(to right, var(--accent), var(--line)); }
.step__line--dashed {
  background: repeating-linear-gradient(to right, var(--line) 0 4px, transparent 4px 9px);
}
.step__labels {
  display: flex; justify-content: space-between; gap: 12px;
  margin-top: 18px;
}
.step h3 {
  margin-top: 10px;
  font-size: clamp(20px, 1.9vw, 23px);
  font-weight: 600; line-height: 1.2; letter-spacing: -.015em;
}
.step p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

.method__text { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(16px, 3vw, 36px); }

/* ---------- sobre ---------- */

.about__quote { padding-bottom: clamp(22px, 3vw, 30px); border-bottom: 1px solid var(--line); }
.about__quote blockquote {
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 500; line-height: 1.22; letter-spacing: -.02em;
}
.about__quote figcaption { margin-top: 16px; }
.about__cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 3vw, 36px);
}
.about__facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 clamp(20px, 3vw, 36px);
  margin-top: clamp(24px, 3vw, 34px);
}
.about__facts li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 15px; line-height: 1.5; color: var(--ink-2);
}

/* ---------- 04 avaliações ---------- */

.score { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.score__num {
  font-size: clamp(46px, 5.2vw, 62px);
  font-weight: 600; line-height: .85; letter-spacing: -.04em;
}
.score__stars { font-size: 17px; color: var(--accent); letter-spacing: .14em; }

.review--lead { padding-bottom: clamp(22px, 3vw, 30px); border-bottom: 1px solid var(--line); }
.review--lead blockquote {
  margin-top: 12px;
  font-size: clamp(23px, 2.5vw, 32px);
  font-weight: 500; line-height: 1.22; letter-spacing: -.02em;
}
.review--lead figcaption { margin-top: 16px; }
/* 205px (e não os 230px do handoff): com 230px os 3 depoimentos caem para
   2 + 1 órfão na largura real do rail-body. 205px devolve as 3 colunas. */
.reviews__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(24px, 3vw, 32px);
}
.review__stars { color: var(--accent); letter-spacing: .12em; font-size: 13px; }
.review--lead .review__stars { font-size: 15px; }
.reviews__grid blockquote {
  margin-top: 10px; font-size: 17px; font-weight: 500;
  line-height: 1.45; letter-spacing: -.01em;
}
.reviews__grid figcaption { margin-top: 12px; }

/* ---------- 05 dúvidas ---------- */

.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 20px; padding: 17px 0;
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 500; line-height: 1.35; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq__icon {
  flex: 0 0 auto; display: inline-block;
  font-size: 20px; line-height: 1; color: var(--accent-ink);
  transition: transform 420ms var(--ease);
}
.faq details[open] .faq__icon { transform: rotate(135deg); }
.faq__answer { padding: 0 0 18px; }
.faq__answer p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 58ch; }

/* ---------- 06 contato ---------- */

.contact__inner { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 64px); }
.contact__info { flex: 4 1 380px; min-width: 0; }
.contact__info .label { color: var(--gold-light); }
.contact__info h2 { margin-top: 14px; max-width: 13ch; }
.contact__info p { margin-top: 16px; max-width: 42ch; font-size: 17px; line-height: 1.6; color: var(--on-dark-2); }
.contact__info .btn { margin-top: 26px; }

.contact__list { margin-top: clamp(28px, 4vw, 40px); }
.contact__list li {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 8px 20px; padding: 13px 0;
  border-top: 1px solid var(--on-dark-line);
  font-size: 15.5px;
}
.contact__list .label { color: var(--on-dark-3); }
.contact__list a { transition: color 200ms var(--ease); }
.contact__list a:hover, .contact__list a:focus-visible { color: var(--gold-light); }

.contact__form {
  flex: 3 1 340px; min-width: 0;
  display: flex; flex-direction: column; gap: 18px;
  background: rgba(239, 237, 230, .06);
  border: 1px solid rgba(239, 237, 230, .18);
  border-radius: 14px;
  padding: clamp(24px, 3vw, 36px);
}
.contact__form > .label { color: var(--on-dark-3); }
.contact__form label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 13.5px; color: var(--on-dark-2);
}
.contact__form input,
.contact__form select,
.contact__form textarea {
  padding: 12px 0;
  background: transparent;
  border: 0; border-bottom: 1px solid rgba(239, 237, 230, .3);
  color: var(--on-dark);
  font-size: 16px; /* evita o zoom automático do iOS */
  outline: none;
  transition: border-color 200ms var(--ease);
}
.contact__form textarea { resize: vertical; }
.contact__form input::placeholder,
.contact__form textarea::placeholder { color: rgba(239, 237, 230, .42); }
.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus { border-color: var(--gold-light); }
.contact__form option { color: var(--ink); }
.contact__form button { align-self: flex-start; margin-top: 4px; }
.form-note { font-size: 12.5px; line-height: 1.5; color: var(--on-dark-3); }
.form-error {
  font-size: 14px; line-height: 1.5; color: #FFC9B8;
  border-left: 2px solid #FFC9B8; padding-left: 12px;
}

/* ---------- rodapé ---------- */

.site-footer { padding: clamp(36px, 4vw, 60px) 0 32px; }
.site-footer img { display: block; width: min(300px, 70vw); height: auto; }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 20px 40px; margin-top: 24px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.site-footer nav {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px;
  font-size: 13.5px; color: var(--ink-2);
}
.site-footer nav a { transition: color 200ms var(--ease); }
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: var(--ink); }
.site-footer__legal { font-size: 12.5px; line-height: 1.6; color: var(--ink-2); text-align: right; }
@media (max-width: 620px) { .site-footer__legal { text-align: left; } }

/* ---------- página de obrigado ---------- */

.thanks {
  min-height: 68vh;
  display: flex; align-items: center;
  padding-block: clamp(36px, 7vw, 88px);
}
.thanks > .container { width: 100%; }
.thanks__inner { max-width: 54ch; }
.thanks__eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: .2em; }
.thanks h1 { margin-top: 18px; max-width: 17ch; }
.thanks__lede { margin-top: 18px; }
.thanks__actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 26px; margin-top: 30px;
}
.thanks__meta {
  margin-top: clamp(30px, 5vw, 44px); padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- honeypot antispam ---------- */

.hp-field {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* ---------- banner de cookies ---------- */

.consent {
  position: fixed; z-index: 90;
  left: 0; right: 0; bottom: 0;
  padding: 16px clamp(16px, 4vw, 40px) max(16px, env(safe-area-inset-bottom));
  background: var(--ink); color: var(--on-dark);
  border-top: 1px solid var(--on-dark-line);
  transform: translateY(0);
  transition: transform 360ms var(--ease);
}
.consent[hidden] { display: none; }
.consent__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px clamp(20px, 4vw, 40px);
}
.consent__text { flex: 1 1 420px; font-size: 14px; line-height: 1.55; color: var(--on-dark-2); }
.consent__text strong { color: var(--on-dark); font-weight: 600; }
.consent__text a { color: var(--gold-light); border-bottom: 1px solid rgba(201, 164, 112, .5); }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }
/* aceitar e recusar têm o mesmo peso visual: a ANPD e a LGPD exigem que recusar
   seja tão fácil quanto aceitar */
.consent__btn {
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  background: transparent; color: var(--on-dark);
  border: 1px solid rgba(239, 237, 230, .55);
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.consent__btn:hover, .consent__btn:focus-visible { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.consent .consent__btn:focus-visible { outline-color: var(--gold-light); }
@media (max-width: 640px) {
  .consent { padding-top: 14px; }
  .consent__text { font-size: 13.5px; }
  .consent__actions { width: 100%; }
  .consent__btn { flex: 1 1 0; text-align: center; }
}

/* sobe o botão de WhatsApp enquanto o banner ocupa o rodapé */
body.has-consent .wa-float { bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--consent-h, 0px)); }

.link-button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: inherit;
}
.link-button:hover, .link-button:focus-visible { color: var(--ink); }

/* ---------- páginas legais ---------- */

.legal { padding-block: clamp(36px, 6vw, 72px); }
.legal__inner { max-width: 72ch; }
.legal h1 { margin-top: 14px; max-width: none; font-size: clamp(30px, 3.6vw, 44px); }
.legal__updated { margin-top: 12px; }
.legal__lede { margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.legal h2 {
  margin-top: clamp(30px, 4vw, 44px);
  padding-top: 20px; border-top: 1px solid var(--line);
  font-size: clamp(19px, 1.9vw, 23px); letter-spacing: -.015em; line-height: 1.25;
}
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin-top: 12px; }
.legal p.label { margin-top: 0; font-size: 11px; line-height: 1.6; }
.legal p.legal__updated { margin-top: 12px; }
.legal ul { margin-top: 10px; padding-left: 0; }
.legal li { position: relative; padding: 4px 0 4px 20px; }
.legal li::before {
  content: ""; position: absolute; left: 2px; top: .95em;
  width: 8px; height: 1px; background: var(--accent);
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-ink); border-bottom: 1px solid var(--line); }
.legal a:hover, .legal a:focus-visible { border-color: var(--accent); }
.legal__table { margin-top: 14px; overflow-x: auto; }
.legal table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); line-height: 1.55; color: var(--ink-2); }
.legal th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 500; border-bottom-color: var(--ink); }
.legal td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.legal__note {
  margin-top: 26px; padding: 14px 16px; border-left: 2px solid var(--accent);
  background: var(--bg-2); font-size: 14.5px; line-height: 1.6; color: var(--ink-2);
}

/* ---------- página 404 ---------- */

.notfound__code { font-size: clamp(64px, 12vw, 132px); line-height: .9; letter-spacing: -.05em; font-weight: 600; color: var(--accent); }

/* ---------- WhatsApp flutuante ---------- */

.wa-float {
  position: fixed; z-index: 70;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 6px 22px rgba(30, 42, 54, .26);
  transition: transform 220ms var(--ease);
}
.wa-float:hover, .wa-float:focus-visible { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; display: block; }

/* =========================================================
   Celular: mesmo conteúdo, ritmo vertical comprimido.
   O design foi desenhado para desktop; no telefone o mesmo
   espaçamento vira rolagem demais.
   ========================================================= */

@media (max-width: 640px) {

  /* ritmo de seção: 44/44 -> 28/28 */
  .section { padding-block: 28px; }
  .hero { padding: 20px 0 28px; }
  .site-footer { padding: 26px 0 22px; }

  /* rail + corpo encostam mais */
  .rail-grid { gap: 18px; }
  .rail h2 { margin-top: 8px; }
  .rail-sticky { position: static; }   /* sticky não faz sentido empilhado */

  /* hero */
  .hero h1 { margin-top: 12px; }
  .hero__lede { margin-top: 12px; }
  .hero__actions { margin-top: 18px; gap: 12px 20px; }
  .hero__stats { margin-top: 18px; padding-top: 14px; gap: 12px 24px; }
  .hero__inner { gap: 22px; }
  /* 4:5 em 350px de largura dá 437px de altura só de vídeo: limita */
  .video-frame { aspect-ratio: 1 / 1; max-height: 46vh; }
  .hero__caption { margin-top: 10px; }

  /* casos: empilhado, o cabeçalho de tabela vira dois rótulos soltos
     sem coluna nenhuma para rotular — some, e a régua forte vai para a tabela */
  .cases__row--head { display: none; }
  .cases { border-top: 1px solid var(--ink); }
  .cases__row { padding: 14px 0; gap: 4px 16px; }
  .cases__action { margin-top: 2px; }
  .cases__what p { margin-top: 4px; }
  .cases__action .label { margin-top: 4px; }
  .also { margin-top: 20px; }
  .also__list { gap: 7px; margin-top: 10px; }
  .also__list li { padding: 6px 13px; }

  /* metodologia */
  .method__head { gap: 10px; }
  .method__steps { margin-top: 22px; gap: 20px; }
  .step__labels { margin-top: 12px; }
  .step h3 { margin-top: 6px; }
  .step p { margin-top: 6px; }

  /* sobre */
  .about__quote { padding-bottom: 18px; }
  .about__quote figcaption { margin-top: 12px; }
  .about__cols { margin-top: 18px; gap: 14px; }
  .about__facts { margin-top: 20px; }
  .about__facts li { padding: 10px 0; }

  /* avaliações */
  .score { margin-top: 16px; }
  .review--lead { padding-bottom: 18px; }
  .review--lead blockquote { margin-top: 8px; }
  .review--lead figcaption { margin-top: 12px; }
  .reviews__grid { margin-top: 20px; gap: 18px; }
  .reviews__grid blockquote { margin-top: 8px; }
  .reviews__grid figcaption { margin-top: 8px; }

  /* dúvidas */
  .faq summary { padding: 14px 0; gap: 16px; }
  .faq__answer { padding-bottom: 14px; }

  /* contato */
  .contact__inner { gap: 24px; }
  .contact__info h2 { margin-top: 8px; }
  .contact__info p { margin-top: 12px; }
  .contact__info .btn { margin-top: 18px; }
  .contact__list { margin-top: 20px; }
  .contact__list li { padding: 10px 0; }
  .contact__form { gap: 14px; padding: 20px; }
  .contact__form label { gap: 5px; }
  .contact__form input,
  .contact__form select,
  .contact__form textarea { padding: 9px 0; }
  .contact__form textarea { min-height: 62px; height: 62px; }

  /* rodapé */
  .site-footer img { width: min(220px, 60vw); }
  .site-footer__bottom { margin-top: 18px; padding-top: 14px; gap: 14px 30px; }
}

/* ---------- animações ---------- */

[data-reveal] { opacity: 1; }             /* visível por padrão: sem JS, nada some */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.js [data-reveal].is-in.is-fast { transition: opacity 380ms var(--ease), transform 380ms var(--ease); }

.word-mask {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .02em .09em .1em; margin: -.02em -.09em -.1em;
}
.word-inner { display: inline-block; will-change: transform; transform: translateY(105%); }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .word-inner { transform: none !important; transition: none !important; }
  .video-frame video { opacity: 1; transform: none; transition: none; }
  .faq__icon { transition: none; }
  .consent { transition: none; }
}
