/* Guilbert Aviz — prévia v2. Tokens em especificacao/tokens.json do kit. */

@font-face {
  font-family: "Baskervville";
  src: url("../fonts/baskervville-roman.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B1B2B;
  --surface: #142D44;
  --cream: #F3ECDD;
  --paper: #FCFAF5;
  --ink: #253747;
  --bronze: #B7A17B;
  /* Bronze para texto pequeno sobre creme: 5:1. */
  --bronze-deep: #76623F;
  /* Texto secundário tingido da tinta/creme: 5,4:1 sobre creme e 9,9:1 sobre navy. */
  --ink-soft: #52616E;
  --cream-soft: #C9C3B6;
  --rule: rgba(37, 55, 71, 0.22);
  --rule-dark: rgba(183, 161, 123, 0.4);

  --serif: "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "Manrope", Arial, Helvetica, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1240px;
  --section-space: clamp(72px, 10vw, 136px);
  --header-h: 84px;

  /* Curvas: saída forte para interface, entrada-saída para movimento em tela, gaveta para barras. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Escala tipográfica por papel (cada degrau ~1,25x; fluida entre 375 e 1280 px). */
  --fs-display: clamp(2.5rem, 1.1rem + 4.6vw, 4.75rem);
  --fs-h2-xl: clamp(2.3rem, 1.4rem + 2.9vw, 3.6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2vw, 3rem);
  --fs-h3: clamp(1.6rem, 1.35rem + 0.8vw, 1.9rem);
  --fs-h4: clamp(1.35rem, 1.25rem + 0.35vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.78125rem;
  --track-display: -0.022em;
  --track-title: -0.014em;
  --track-label: 0.1em;

  --focus: var(--navy);
  color-scheme: light;
  accent-color: var(--navy);
  scrollbar-color: var(--surface) var(--paper);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  /* O botão flutuante do WhatsApp não cobre o elemento em foco. */
  scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom));
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  caret-color: var(--navy);
  font-kerning: normal;
}

p,
li,
dd {
  text-wrap: pretty;
}

::selection {
  background: var(--navy);
  color: var(--cream);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
fieldset {
  margin: 0;
}

fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: 400;
}

button {
  font: inherit;
  color: inherit;
}

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Toque: sem atraso de duplo toque; o retorno visual vem do estado :active. */
a,
button,
summary,
label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

.hide-sm {
  display: none;
}

/* O atributo hidden precisa vencer o display dos componentes. */
[hidden] {
  display: none !important;
}

.no-js .needs-js {
  display: none;
}

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

/* Áreas escuras herdam foco e seleção claros. */
.dark,
.site-footer {
  --focus: var(--cream);
}

.dark ::selection,
.site-footer ::selection {
  background: var(--cream);
  color: var(--navy);
}

/* ---------- Botões e links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 200ms ease,
    color 200ms ease;
}

.button:active:not(:disabled) {
  transform: scale(0.97);
}

.button--compact {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.button--light {
  background: var(--cream);
  color: var(--navy);
}

.button--navy {
  background: var(--navy);
  color: var(--cream);
}

.button:disabled {
  border-color: var(--cream-soft);
  background: transparent;
  color: var(--cream-soft);
  cursor: not-allowed;
}

.button__label {
  display: inline-block;
  transition: filter 160ms ease, opacity 160ms ease;
}

.button__label.is-swapping {
  filter: blur(4px);
  opacity: 0.3;
}

@media (hover: hover) and (pointer: fine) {
  .button--light:hover {
    background: var(--paper);
  }

  .button--navy:hover {
    background: var(--surface);
  }
}

/* Sublinhado sempre visível; no hover ganha cor cheia e espessura. */
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.32em;
  transition:
    text-decoration-color 200ms ease,
    text-underline-offset 260ms var(--ease-out);
}

.text-link--light {
  color: var(--cream);
}

/* Link no meio de uma frase: fica na linha do texto (alvos inline são exceção na WCAG 2.5.8). */
.text-link--inline {
  display: inline;
  min-height: 0;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover {
    text-decoration-color: currentColor;
    text-underline-offset: 0.22em;
  }
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  padding-block: 12px 4px;
}

.brand {
  display: inline-flex;
  padding-block: 4px;
}

.brand__logo {
  width: auto;
  height: 52px;
}

.site-nav {
  width: 100%;
}

.site-nav ul {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 320ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* Seção em que o leitor está: texto em navy e traço de bronze fixo. */
.site-nav a[aria-current="location"] {
  color: var(--navy);
}

.site-nav a[aria-current="location"]::after {
  height: 2px;
  background: var(--bronze);
  transform: scaleX(1);
  transform-origin: left;
}

/* Fio de progresso da leitura no topo da tela; só existe onde a rolagem pode desenhá-lo. */
.scroll-progress {
  display: none;
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 2px;
  background: var(--bronze);
  transform-origin: 0 50%;
  pointer-events: none;
}

.site-header__cta {
  display: none;
}

/* ---------- Abertura ---------- */

.hero {
  overflow: clip;
  background: var(--navy);
  color: var(--cream);
}

.hero__grid {
  display: grid;
  padding-top: clamp(40px, 7vw, 88px);
}

.hero__title {
  font-family: var(--serif);
  font-size: var(--fs-display);
  line-height: 1.03;
  letter-spacing: var(--track-display);
  text-wrap: balance;
}

/* Cada palavra sobe por trás de uma máscara; margem extra preserva acentos e descendentes. */
.hero__title .w {
  display: inline-block;
  overflow: clip;
  overflow-clip-margin: 0.04em;
  padding: 0.1em 0 0.14em;
  margin: -0.1em 0 -0.14em;
  vertical-align: top;
}

.hero__title .w > span {
  display: inline-block;
}

/* Ordem de cada palavra na entrada (sem estilo inline, compatível com a CSP). */
.hero__title .w:nth-child(2) { --i: 1; }
.hero__title .w:nth-child(3) { --i: 2; }
.hero__title .w:nth-child(4) { --i: 3; }
.hero__title .w:nth-child(5) { --i: 4; }
.hero__title .w:nth-child(6) { --i: 5; }
.hero__title .w:nth-child(7) { --i: 6; }
.hero__title .w:nth-child(8) { --i: 7; }
.hero__title .w:nth-child(9) { --i: 8; }

.hero__lead {
  max-width: 34em;
  margin-top: 24px;
  color: var(--cream-soft);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.6;
}

.hero__note {
  margin-top: 14px;
  color: var(--cream-soft);
  font-size: 0.9375rem;
}

.credential {
  margin-top: 6px;
  color: var(--cream-soft);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: 28px;
}

/* Retrato recortado (pixels originais) sobre painel escuro. Na abertura a cabeça passa
   da borda do painel; o recorte só é usado sobre fundos escuros. */
.portrait {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.portrait__panel {
  position: absolute;
  inset: var(--panel-top, 0) 0 0;
  background: var(--panel, var(--surface));
}

.portrait__img {
  position: relative;
  width: 100%;
}

.portrait--hero {
  margin-top: 32px;
}

/* Sem painel: o recorte se dissolve no navy embaixo e nas laterais, onde a foto original cortava os braços. */
.portrait--hero .portrait__img {
  -webkit-mask-image:
    linear-gradient(to bottom, #000 56%, transparent 97%),
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 56%, transparent 97%),
    linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%);
  mask-composite: intersect;
}

/* ---------- Áreas ---------- */

.explain {
  padding-block: var(--section-space);
}

/* Tipos de perícia: três colunas abertas, sem cartões nem botões. */
.kinds {
  display: grid;
  gap: 8px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kind {
  position: relative;
  padding-block: 24px;
}

.kind::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--navy);
  transform-origin: left;
}

.kind__title {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.006em;
}

.kind p {
  max-width: 26em;
}

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.section-title {
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: var(--track-title);
  text-wrap: balance;
}

.section-intro {
  max-width: 32em;
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.fine-print {
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

/* ---------- Profissional ---------- */

.profile {
  padding-block: var(--section-space);
}

.profile__credential {
  margin-top: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.profile__grid {
  display: grid;
  gap: 32px;
}

.profile__copy {
  order: -1;
}

.portrait--profile {
  --panel: var(--navy);
  overflow: clip;
  border-radius: 16px;
}

/* ---------- Atendimento ---------- */

.process {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--section-space);
  background: var(--cream);
}

/* Mostrador de relógio ao fundo, no traço dos anéis das seções azuis; o ponteiro gira com a rolagem. */
.process__dial {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: -60vw;
  width: min(120vw, 860px);
  height: auto;
  translate: 0 -50%;
  fill: none;
  pointer-events: none;
}

.dial__rim {
  stroke: rgba(11, 27, 43, 0.1);
  stroke-width: 1;
}

.dial__minutes {
  stroke: rgba(11, 27, 43, 0.08);
  stroke-width: 8;
  stroke-dasharray: 0.05 0.95;
}

.dial__hours {
  stroke: rgba(11, 27, 43, 0.13);
  stroke-width: 20;
  stroke-dasharray: 0.012 0.988;
}

.dial__inner {
  stroke: rgba(183, 161, 123, 0.4);
  stroke-width: 1;
  stroke-dasharray: 1.5 9;
}

.dial__hand {
  rotate: -60deg;
  transform-box: view-box;
  transform-origin: 50% 50%;
}

.dial__hand line {
  stroke: rgba(183, 161, 123, 0.5);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.dial__hand circle {
  fill: rgba(183, 161, 123, 0.6);
}

/* Linha do tempo vertical: cada ponto fica na altura do prazo e a linha liga um ponto ao seguinte. */
.steps {
  --dot: 14px;
  --value-size: clamp(2.5rem, 1.9rem + 1.8vw, 3.5rem);
  --dot-y: calc(var(--value-size) * 0.56);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) minmax(0, 1fr);
  column-gap: 22px;
  align-items: start;
  padding-bottom: 52px;
}

.step:last-child {
  padding-bottom: 0;
}

/* Trilho claro e traço azul por cima; o traço é o que a rolagem desenha. */
.step:not(:last-child)::before,
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: var(--dot-y);
  left: calc(var(--dot) / 2 - 0.5px);
  width: 1px;
  height: 100%;
}

.step:not(:last-child)::before {
  background: var(--rule);
}

.step:not(:last-child)::after {
  background: var(--navy);
  transform-origin: top;
}

.step__num {
  position: relative;
  z-index: 1;
  grid-row: 1 / span 2;
  width: var(--dot);
  height: var(--dot);
  margin-top: calc(var(--dot-y) - var(--dot) / 2);
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: var(--navy);
}

.step__when {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.step__value {
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--value-size);
  font-variant-numeric: lining-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

.step__caption {
  max-width: 18em;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}

.step__body {
  grid-column: 2;
}

.step__title {
  margin-bottom: 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--fs-h4);
  line-height: 1.25;
}

.step__body p {
  max-width: 34em;
}

/* Régua de dias: um traço por dia, mais alto a cada cinco. Mostra de relance que 5 dias é um terço de 15. */
.step__days {
  --days: 15;
  display: block;
  width: calc(var(--days) * 10px - 8.5px);
  height: 14px;
  margin-top: 10px;
  background:
    repeating-linear-gradient(90deg, var(--navy) 0 1.5px, transparent 1.5px 50px) 40px 100% / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--bronze) 0 1.5px, transparent 1.5px 10px) 0 100% / 100% 8px no-repeat;
}

.step__days[data-days="5"] {
  --days: 5;
}

/* Base legal à parte: o texto fica curto e o advogado ainda encontra o artigo. */
.step__body .step__law {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.step__law-label {
  margin-right: 8px;
  color: var(--bronze-deep);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

/* ---------- Dúvidas ---------- */

.faq-section {
  padding-block: var(--section-space);
  background: var(--cream);
}

.faq {
  display: grid;
  gap: 32px;
}

/* Painel azul com o § dos textos legais ao fundo: ancora a seção e leva ao WhatsApp. */
.faq__intro {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
  padding: clamp(32px, 5vw, 52px);
  border-radius: 16px;
  box-shadow: 0 30px 60px -40px rgba(11, 27, 43, 0.7);
}

.faq .faq__intro {
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(56, 98, 142, 0.5), rgba(56, 98, 142, 0) 60%),
    var(--navy);
}

.faq__mark {
  position: absolute;
  z-index: -1;
  right: 0.04em;
  bottom: -0.16em;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: clamp(12rem, 8rem + 11vw, 19rem);
  line-height: 1;
  opacity: 0.14;
  pointer-events: none;
  user-select: none;
}

.faq__title {
  color: var(--cream);
  font-family: var(--serif);
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: var(--track-title);
  text-wrap: balance;
}

.faq__lead {
  max-width: 22em;
  color: var(--cream-soft);
  font-size: var(--fs-lead);
  line-height: 1.55;
}

.faq__more {
  margin-top: 18px;
  color: var(--cream);
  font-weight: 600;
}

.faq__item {
  border-top: 1px solid var(--rule);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq__item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 16px 60px 16px 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 200ms ease;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

/* Botão redondo: o mais vira menos e o círculo se preenche quando a resposta abre. */
.faq__item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 1px solid rgba(11, 27, 43, 0.3);
  border-radius: 50%;
  color: var(--navy);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease,
    background-size 280ms var(--ease-out),
    rotate 280ms var(--ease-out);
}

.faq__item[open] summary::after {
  border-color: var(--navy);
  background-color: var(--navy);
  background-size: 12px 1.5px, 1.5px 0;
  color: var(--cream);
  rotate: 180deg;
}

@media (hover: hover) and (pointer: fine) {
  .faq__item summary:hover {
    text-decoration-color: currentColor;
  }

  .faq__item summary:hover::after {
    border-color: var(--navy);
  }
}

.faq__item p {
  max-width: 38em;
  padding: 0 min(60px, 8vw) 22px 0;
}

/* ---------- Contato ---------- */

.contact {
  padding-block: var(--section-space);
  background: var(--navy);
  color: var(--cream);
}

.contact .section-title {
  color: var(--cream);
}

.contact__grid {
  display: grid;
  gap: 40px;
}

.contact__intro {
  max-width: 30em;
  margin-top: 16px;
  color: var(--cream-soft);
}

.howto {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding-left: 1.4em;
  color: var(--cream);
}

.howto li::marker {
  color: var(--bronze);
  font-family: var(--serif);
  font-variant-numeric: lining-nums;
}

.channels {
  margin-top: 32px;
}

.channel {
  display: grid;
  gap: 2px;
  padding-block: 14px;
  border-top: 1px solid var(--rule-dark);
}

.channel:last-child {
  border-bottom: 1px solid var(--rule-dark);
}

.channel dt {
  font-weight: 600;
}

.channel dd {
  color: var(--cream-soft);
}

.composer {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  /* Mesmo raio dos painéis de Dúvidas e Princípios. */
  border-radius: 16px;
}

/* Dois campos de escolha no lugar de vários botões. */
.composer__fields {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field__label {
  font-weight: 600;
}

.field__select {
  width: 100%;
  min-height: 52px;
  padding: 0 44px 0 16px;
  border: 1px solid var(--cream-soft);
  border-radius: 3px;
  /* Seta desenhada em SVG; cores explícitas para o modo escuro do Windows. */
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23F3ECDD' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--cream);
  font: inherit;
  appearance: none;
  cursor: pointer;
  transition: border-color 200ms ease;
}

.field__select option {
  background: var(--navy);
  color: var(--cream);
}

.field__select:focus-visible {
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .field__select:hover {
    border-color: var(--cream);
  }
}

.contact__privacy {
  max-width: 30em;
  margin-top: 20px;
  color: var(--cream-soft);
  font-size: 0.9375rem;
}

.composer__preview {
  padding-top: 24px;
  border-top: 1px solid var(--rule-dark);
}

.composer__caption {
  margin-bottom: 10px;
  color: var(--cream-soft);
  font-size: 0.9375rem;
}

.composer__message {
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.4;
}

.composer__message p {
  transition: filter 160ms ease, opacity 160ms ease;
}

.composer__message p.is-swapping {
  filter: blur(4px);
  opacity: 0.3;
}

.composer__actions {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.composer__note {
  color: var(--cream-soft);
  font-size: 0.9375rem;
}

/* ---------- Rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--rule-dark);
  background: var(--navy);
  color: var(--cream-soft);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 32px;
  padding-block: 28px 36px;
}

.site-footer__name {
  margin-right: auto;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.375rem;
}

/* Crédito da agência na mesma linha dos dados do médico, por último. */
.site-footer__credit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  opacity: 0.85;
  transition: opacity 200ms ease;
}

.site-footer__credit img {
  width: auto;
  height: 32px;
}

@media (hover: hover) and (pointer: fine) {
  .site-footer__credit a:hover {
    opacity: 1;
  }
}

/* ---------- Barra de contato no celular ---------- */

/* ---------- Botão flutuante do WhatsApp ---------- */

.float-cta {
  position: fixed;
  right: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-right));
  bottom: calc(clamp(16px, 2.5vw, 32px) + env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  /* Contorno creme bem leve: o botão não some sobre as seções azuis. */
  border: 1px solid rgba(243, 236, 221, 0.16);
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  box-shadow:
    0 2px 4px rgba(11, 27, 43, 0.12),
    0 16px 32px -12px rgba(11, 27, 43, 0.55);
  opacity: 0;
  transform: translateY(12px) scale(0.92);
  visibility: hidden;
  transition:
    opacity 200ms ease,
    transform 240ms var(--ease-out),
    background-color 200ms ease,
    visibility 0s linear 240ms;
}

.float-cta.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition:
    opacity 280ms ease,
    transform 420ms var(--ease-out),
    background-color 200ms ease;
}

.float-cta:active {
  transform: scale(0.95);
}

.float-cta__icon {
  width: 28px;
  height: 28px;
}

.float-cta__bubble {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.float-cta__phone {
  fill: currentColor;
}

/* Rótulo que desliza para fora no hover ou no foco do teclado. */
.float-cta__label {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  translate: 8px -50%;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    translate 220ms var(--ease-out);
}

.float-cta:focus-visible .float-cta__label {
  opacity: 1;
  translate: 0 -50%;
}

@media (hover: hover) and (pointer: fine) {
  .float-cta:hover {
    background: var(--surface);
  }

  .float-cta:hover .float-cta__label {
    opacity: 1;
    translate: 0 -50%;
  }
}

/* ---------- Seções escuras e fundo animado ---------- */

.dark {
  position: relative;
  isolation: isolate;
  overflow: clip;
  background: var(--navy);
  color: var(--cream);
}

.dark .section-title,
.dark .kind__title {
  color: var(--cream);
}

.dark .section-intro,
.dark .fine-print {
  color: var(--cream-soft);
}

.dark .kind::before {
  background: var(--rule-dark);
}

/* Luz difusa que se desloca devagar e anéis tracejados como um mostrador de medição. */
.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient__light {
  position: absolute;
  border-radius: 50%;
}

.ambient__light--a {
  top: -38vmax;
  right: -22vmax;
  width: 72vmax;
  height: 72vmax;
  background: radial-gradient(closest-side, rgba(38, 74, 112, 0.55), rgba(38, 74, 112, 0));
}

.ambient__light--b {
  bottom: -36vmax;
  left: -26vmax;
  width: 62vmax;
  height: 62vmax;
  background: radial-gradient(closest-side, rgba(183, 161, 123, 0.13), rgba(183, 161, 123, 0));
}

.ambient__light--c {
  top: -6vmax;
  right: 4%;
  width: 46vmax;
  height: 46vmax;
  background: radial-gradient(closest-side, rgba(56, 98, 142, 0.42), rgba(56, 98, 142, 0));
}

.ambient__rings {
  position: absolute;
  top: 50%;
  right: -34vmax;
  width: min(110vmax, 1400px);
  height: auto;
  translate: 0 -50%;
  fill: none;
  stroke: rgba(183, 161, 123, 0.16);
  stroke-width: 0.6;
}

.ambient__rings .dash {
  stroke: rgba(183, 161, 123, 0.3);
  stroke-dasharray: 1.5 9;
}

.contact .ambient__rings {
  right: auto;
  left: -40vmax;
}

/* ---------- Estátua da Justiça ---------- */

.statue-section {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-bottom: var(--section-space);
  background: var(--paper);
}

/* Recorte em escala de cinza, desfeito nas bordas para virar parte do fundo. */
.statue {
  position: relative;
  z-index: -1;
  display: block;
  width: 128%;
  max-width: none;
  margin: 0 -14% -26% auto;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 45%, transparent 92%),
    linear-gradient(to right, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 45%, transparent 92%),
    linear-gradient(to right, transparent 0%, #000 30%);
  mask-composite: intersect;
}

.statue-section__copy {
  max-width: 36rem;
}

.section-title--xl {
  font-size: var(--fs-h2-xl);
  line-height: 1.05;
  letter-spacing: var(--track-display);
}

.statue-section__lead {
  max-width: 32em;
  margin-top: 24px;
  font-size: var(--fs-lead);
}

.fronts {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.front {
  position: relative;
  padding: 22px 0 22px 30px;
  border-top: 1px solid var(--rule);
}

.front:last-child {
  border-bottom: 1px solid var(--rule);
}

/* Losango em bronze: só marcador decorativo, o texto não depende dele. */
.front::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--bronze);
  rotate: 45deg;
}

.front__title {
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--fs-h4);
  line-height: 1.25;
}

/* ---------- Tópicos das perícias ---------- */

.topics {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.topics li {
  position: relative;
  padding-left: 24px;
  color: var(--cream-soft);
}

.topics li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 12px;
  height: 1px;
  background: var(--bronze);
}

/* ---------- Princípios ---------- */

.principles {
  padding-block: var(--section-space);
  background: var(--cream);
}

.principles__head {
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 72px);
  text-align: center;
}

.principles__quote {
  margin: 20px 0 0;
}

.principles__quote p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.45;
  text-wrap: balance;
}

.principles__quote figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 600;
}

.principles__quote figcaption::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--bronze);
}

/* Um painel só, dividido em três por filetes de bronze. */
.principles__list {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  margin: 0;
  padding: 12px 28px;
  border-radius: 16px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(56, 98, 142, 0.5), rgba(56, 98, 142, 0)),
    var(--navy);
  list-style: none;
}

.principle {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  padding: 44px 8px;
  color: var(--cream-soft);
  text-align: center;
}

/* Filete entre um princípio e outro: horizontal no celular, vertical no desktop. */
.principle + .principle::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: rgba(183, 161, 123, 0.45);
}

.principle__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 28px;
  fill: none;
  stroke: var(--bronze);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.principle__title {
  color: var(--cream);
  font-family: var(--serif);
  font-size: var(--fs-h3);
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.006em;
}

.principle__title::after {
  content: "";
  display: block;
  width: 32px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--bronze);
}

.principle p {
  max-width: 24em;
  margin-top: 18px;
}

/* ---------- Selo de CRM no retrato ---------- */

.portrait__badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 3px;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- Páginas internas: privacidade e 404 ---------- */

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.3em;
}

.page {
  padding-block: clamp(56px, 8vw, 104px) var(--section-space);
}

.legal {
  max-width: calc(44rem + 2 * var(--gutter));
}

.page__title {
  color: var(--navy);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
  line-height: 1.08;
}

.legal h2 {
  margin: 40px 0 10px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1.2;
}

.legal p + p {
  margin-top: 12px;
}

.legal__updated {
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.not-found {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  align-items: center;
}

.not-found__inner {
  padding-block: 96px;
}

.not-found__code {
  margin-bottom: 8px;
  color: var(--bronze);
  font-family: var(--serif);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  font-variant-numeric: lining-nums;
  line-height: 1;
}

.not-found__text {
  max-width: 32em;
  margin-top: 20px;
  color: var(--cream-soft);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  margin-top: 32px;
}

/* ---------- Abertura centralizada em uma coluna (celular e tablet) ---------- */

@media (max-width: 1023px) {
  .hero__copy {
    text-align: center;
  }

  .hero__title,
  .hero__lead {
    margin-inline: auto;
  }

  .hero__lead {
    text-wrap: balance;
  }

  .hero__actions {
    justify-content: center;
  }

  .portrait--hero {
    justify-self: center;
  }
}

@media (max-width: 599px) {
  .site-header__inner {
    justify-content: center;
  }

  /* Botão na largura toda: alvo maior para o polegar e composição simétrica. */
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
    max-width: 360px;
  }

  /* Rosto já na primeira tela: retrato menor, só cabeça e ombros, antes do título.
     A ordem do HTML continua título primeiro para leitores de tela. */
  .portrait--hero {
    order: -1;
    width: min(260px, 72vw);
    margin: -12px auto 4px;
  }

  .portrait--hero .portrait__img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: 50% 0;
  }

  .faq__cta {
    width: 100%;
  }
}

/* ---------- Onde atende: mapa ---------- */

/* Página de atlas: fundo claro, estados em tons de creme, cidades em navy e bordas que se desfazem no papel. */
.atlas {
  padding-block: var(--section-space);
  background: var(--paper);
}

.atlas__grid {
  display: grid;
  gap: 32px;
}

.atlas__figure {
  margin: 0;
}

.atlas__map {
  display: block;
  width: 100%;
  height: auto;
  /* As quatro bordas se desfazem no papel, como na primeira versão. */
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent, #000 12%, #000 88%, transparent),
    linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  mask-composite: intersect;
}

.atlas__state {
  stroke: rgba(11, 27, 43, 0.4);
  stroke-width: 1.2;
  stroke-linejoin: round;
}

.atlas__state--ms {
  fill: #F1E9D8;
}

.atlas__state--sp {
  fill: #EDE3CE;
}

.atlas__state--pr {
  fill: #E8DCC3;
}

.atlas__state-name {
  fill: rgba(11, 27, 43, 0.42);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Luz suave em bronze sobre a região atendida. */
.atlas__glow {
  pointer-events: none;
}

.atlas__city {
  cursor: pointer;
  transition: opacity 220ms ease;
}

/* Anel só aparece na cidade escolhida: nada pulsa nem pisca. */
.atlas__ring {
  fill: none;
  stroke: var(--bronze-deep);
  stroke-width: 1.2;
  opacity: 0;
  transform: scale(0.6);
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 200ms ease,
    transform 260ms var(--ease-out);
}

.atlas__dot {
  fill: var(--navy);
  stroke: var(--paper);
  stroke-width: 2;
  transition: fill 200ms ease;
}

.atlas__label {
  fill: var(--navy);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  /* Contorno da cor do papel: o nome segue legível quando cruza uma divisa. */
  paint-order: stroke;
  stroke: var(--paper);
  stroke-width: 4px;
  stroke-linejoin: round;
  transition: fill 200ms ease;
}

/* Cidade escolhida (clique, toque, foco ou mouse): bronze e anel; as outras recuam. */
.atlas__city.is-active .atlas__dot,
.atlas__city.is-active .atlas__label {
  fill: var(--bronze-deep);
}

.atlas__city.is-active .atlas__ring {
  opacity: 1;
  transform: none;
}

.atlas.has-active .atlas__city:not(.is-active) {
  opacity: 0.35;
}

.atlas__list {
  margin: 0;
  border-bottom: 1px solid var(--rule);
}

.atlas__group {
  padding-block: 18px;
  border-top: 1px solid var(--rule);
}

.atlas__group dt {
  margin-bottom: 6px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--fs-h4);
  line-height: 1.25;
}

.atlas__group dd {
  margin: 0;
  color: var(--ink);
}

/* Nomes da lista são botões discretos: mesmo texto, sublinhado ao apontar ou escolher. */
.atlas__city-name {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 25%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  transition:
    color 200ms ease,
    text-decoration-color 200ms ease;
}

.atlas__city-name.is-active {
  color: var(--navy);
  text-decoration-color: var(--bronze);
  text-decoration-thickness: 2px;
}

/* No celular o mapa encolhe: nomes e pontos crescem para continuar legíveis. */
@media (max-width: 767px) {
  .atlas__label {
    font-size: 23px;
    stroke-width: 6px;
  }

  .atlas__dot {
    r: 6px;
  }

  .atlas__ring {
    r: 11px;
  }

  .atlas__state-name {
    font-size: 17px;
  }
}

/* ---------- Fundos difusos (no padrão da estátua) ---------- */

/* Foto em tons de cinza que se desfaz no papel: medicina no "Conheça", direito nas Dúvidas. */
.has-backdrop {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.backdrop {
  position: absolute;
  z-index: -1;
  max-width: none;
  height: auto;
  opacity: 0.42;
  mix-blend-mode: multiply;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%);
}

.backdrop--medicina {
  right: -40vw;
  bottom: -2%;
  width: 140vw;
}

.backdrop--direito {
  display: none;
}

/* Análise de exames e relatório escrito atrás do título de "Como ele trabalha"; o painel dos princípios fica por cima. */
.backdrop--exames {
  top: 0;
  left: 50%;
  width: 160vw;
  translate: -50% 0;
  opacity: 0.52;
  /* Além do oval, o topo se desfaz: sem linha marcada na divisa com a seção de cima. */
  -webkit-mask-image:
    radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%),
    linear-gradient(to bottom, transparent 4%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image:
    radial-gradient(ellipse 50% 50% at 50% 50%, #000 35%, transparent 100%),
    linear-gradient(to bottom, transparent 4%, #000 30%);
  mask-composite: intersect;
}

@media (min-width: 1024px) {
  .backdrop--medicina {
    top: 50%;
    right: -14%;
    bottom: auto;
    width: min(62vw, 1000px);
    translate: 0 -50%;
  }

  .backdrop--exames {
    top: -6%;
    width: min(96vw, 1400px);
  }

  .backdrop--direito {
    display: block;
    bottom: -12%;
    left: -12%;
    width: min(52vw, 860px);
  }
}

/* ---------- Biografia ---------- */

.profile__bio {
  display: grid;
  gap: 12px;
  max-width: 34em;
  margin-top: 20px;
  font-size: 1.0625rem;
}

/* Ficha do profissional: rótulo curto e dado ao lado, entre filetes. */
.facts {
  max-width: 36em;
  margin: 28px 0 0;
  border-bottom: 1px solid var(--rule);
}

.fact {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-top: 1px solid var(--rule);
}

.fact dt {
  color: var(--bronze-deep);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  color: var(--ink);
}

/* ---------- Telas médias ---------- */

@media (min-width: 600px) {
  .hide-sm {
    display: inline;
  }

  .site-header__inner {
    padding-block: 14px;
  }

  .site-nav {
    width: auto;
  }

  .site-nav ul {
    gap: 28px;
  }

  .site-nav a {
    font-size: 1rem;
  }

  .brand__logo {
    height: 60px;
  }

  .channel {
    grid-template-columns: 180px minmax(0, 1fr);
    align-items: baseline;
    gap: 24px;
  }

  .composer__fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }


  .fact {
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 24px;
  }
}

/* Conheça no celular e no tablet: foto primeiro, tudo centralizado. */
@media (max-width: 1023px) {
  .profile__grid {
    justify-items: center;
  }

  .portrait--profile {
    max-width: 340px;
  }

  .profile__copy {
    order: 0;
    text-align: center;
  }

  .profile__bio,
  .facts {
    margin-inline: auto;
  }

  .fact {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
}

/* ---------- Desktop ---------- */

@media (min-width: 1024px) {
  .atlas__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 40px;
  }

  .atlas__head {
    grid-column: 1;
    grid-row: 1;
  }

  .atlas__list {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }

  .atlas__figure {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
    scroll-padding-bottom: 0;
  }

  .float-cta {
    width: 60px;
    height: 60px;
  }

  /* Cabeçalho fixo que some ao descer e volta ao subir. */
  .site-header {
    position: sticky;
    top: 0;
    transition:
      transform 360ms var(--ease-drawer),
      border-color 200ms ease;
  }

  .site-header.is-scrolled {
    border-bottom-color: var(--rule);
  }

  .site-header.is-hidden {
    transform: translateY(-100%);
  }

  .site-header__inner {
    flex-wrap: nowrap;
    min-height: var(--header-h);
    padding-block: 10px;
  }

  .site-nav {
    margin-left: auto;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 60fr) minmax(0, 40fr);
    column-gap: 56px;
    padding-top: 64px;
  }

  .hero__copy {
    align-self: center;
    padding-bottom: 64px;
  }

  .portrait--hero {
    align-self: end;
    justify-self: end;
    max-width: 480px;
    margin-top: 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    column-gap: 64px;
  }

  .profile__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: 88px;
  }

  .profile__copy {
    order: 0;
  }

  .kinds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process__dial {
    top: 56%;
    right: -24vw;
    width: min(72vw, 860px);
  }

  /* Três colunas por fase: ponto, prazo em destaque e o que o assistente faz. */
  .step {
    grid-template-columns: var(--dot) minmax(0, 4fr) minmax(0, 7fr);
    column-gap: 40px;
    padding-bottom: 72px;
  }

  .step__num {
    grid-row: 1;
  }

  .step__when {
    margin-bottom: 0;
  }

  .step__body {
    grid-column: 3;
    padding-top: calc(var(--dot-y) - 0.9375rem);
  }

  .statue-section {
    padding-top: var(--section-space);
  }

  .statue {
    position: absolute;
    top: 4%;
    right: -1%;
    width: min(60vw, 980px);
    margin: 0;
  }

  .principles__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px 12px;
  }

  .principle {
    padding: 68px 44px;
  }

  .principle + .principle::before {
    top: 18%;
    bottom: 18%;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
  }

  .faq {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: 72px;
    align-items: start;
  }

  .faq__intro {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    min-height: 440px;
  }

  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: 80px;
    align-items: start;
  }
}

/* ---------- Abertura suave dos painéis (navegadores com suporte) ---------- */

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
  }

  details::details-content {
    height: 0;
    overflow: clip;
    transition:
      height 320ms var(--ease-out),
      content-visibility 320ms allow-discrete;
  }

  details[open]::details-content {
    height: auto;
  }
}

/* ---------- Movimento ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Momento único de entrada: palavras sobem, retrato abre como cortina, o resto assenta. */
  .hero__title .w > span {
    animation: word-rise 1000ms var(--ease-out) both;
    animation-delay: calc(120ms + var(--i, 0) * 55ms);
  }

  .hero__lead,
  .hero__actions {
    animation: settle-in 700ms var(--ease-out) both;
  }

  .hero__lead {
    animation-delay: 180ms;
  }

  .hero__actions {
    animation-delay: 300ms;
  }

  /* Painel cresce da divisa; o retrato sobe por dentro dele. */
  .portrait--hero .portrait__img {
    animation: curtain 1400ms var(--ease-in-out) 260ms both;
  }

  .faq__item[open] p {
    animation: panel-in 320ms var(--ease-out);
  }

  /* Rolagem: só onde a rolagem conta algo. Sem suporte, tudo já aparece completo. */
  @supports (animation-timeline: view()) {
    .portrait--hero {
      animation: portrait-sink linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    .kind::before {
      animation: draw-x linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }

    .portrait--profile {
      animation: photo-open linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
    }

    .portrait--profile .portrait__img {
      transform-origin: bottom;
      animation: photo-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 50%;
    }

    /* Linha de leitura a 60% da altura da tela: o traço chega a cada ponto
       quando ele passa por ela, e só então o ponto e o prazo acendem. */
    .steps {
      --read: 40vh;
    }

    .step {
      view-timeline: --step block;
    }

    .step:not(:last-child)::after {
      animation: draw-y linear both;
      animation-timeline: --step;
      animation-range:
        entry calc(var(--read) + var(--dot-y))
        entry calc(100% + var(--read) + var(--dot-y));
    }

    .step__num {
      animation: step-fill linear both;
      animation-timeline: --step;
      animation-range:
        entry calc(var(--read) + var(--dot-y) - 12px)
        entry calc(var(--read) + var(--dot-y) + 12px);
    }

    .step__value {
      animation: step-ink linear both;
      animation-timeline: --step;
      animation-range:
        entry calc(var(--read) + var(--dot-y) - 48px)
        entry calc(var(--read) + var(--dot-y) + 12px);
    }

    /* Quando a fase acende, a régua conta os dias um a um. */
    .step__days {
      animation: days-count steps(var(--days)) both;
      animation-timeline: --step;
      animation-range:
        entry calc(var(--read) + var(--dot-y))
        entry calc(var(--read) + var(--dot-y) + 100px);
    }

    .process {
      view-timeline: --process block;
    }

    .dial__hand {
      animation: hand-turn linear both;
      animation-timeline: --process;
    }
  }

}

@media (prefers-reduced-motion: no-preference) {
  /* Fundo azul vivo, mas lento: 30-50 s por ciclo, só transform. */
  .ambient__light--a {
    animation: drift-a 38s ease-in-out infinite alternate;
  }

  .ambient__light--b {
    animation: drift-b 46s ease-in-out infinite alternate;
  }

  .ambient__light--c {
    animation: drift-c 30s ease-in-out infinite alternate;
  }

  .ambient__rings {
    animation: rings-turn 240s linear infinite;
  }

  @supports (animation-timeline: view()) {
    .statue {
      animation: statue-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    /* O painel se abre do centro para os lados; depois os filetes e os ícones se desenham. */
    .principles__list {
      animation: panel-open linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 60%;
    }

    .principle {
      view-timeline: --item block;
    }

    .principle + .principle::before {
      animation: marker-in linear both;
      animation-timeline: --item;
      animation-range: entry 40% entry 85%;
    }

    .principle__icon > * {
      stroke-dasharray: 1;
      animation: icon-draw linear both;
      animation-timeline: --item;
      animation-range: entry 50% entry 95%;
    }

    .backdrop {
      animation: backdrop-drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }

    .front::before {
      animation: marker-in linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 60%;
    }

    .faq-section {
      view-timeline: --faq block;
    }

    .faq__mark {
      animation: mark-drift linear both;
      animation-timeline: --faq;
    }
  }
}

@keyframes drift-a {
  to {
    transform: translate3d(-8%, 6%, 0) scale(1.1);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(10%, -8%, 0) scale(1.15);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-12%, 10%, 0) scale(0.92);
  }
}

@keyframes rings-turn {
  to {
    rotate: 360deg;
  }
}

@keyframes statue-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 6%, 0);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translate3d(0, -5%, 0);
  }
}

@keyframes panel-open {
  from {
    clip-path: inset(0 50% 0 50% round 16px);
  }
  to {
    clip-path: inset(0 0 0 0 round 16px);
  }
}

@keyframes icon-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes backdrop-drift {
  from {
    transform: translateY(6%);
  }
  to {
    transform: translateY(-6%);
  }
}

@keyframes marker-in {
  from {
    scale: 0;
  }
}

@keyframes mark-drift {
  from {
    transform: translateY(10%) rotate(-4deg);
  }
  to {
    transform: translateY(-6%) rotate(3deg);
  }
}

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

  *,
  *::before,
  *::after {
    transition-property: opacity, color, background-color, border-color, box-shadow, filter !important;
    transition-duration: 160ms !important;
    transition-delay: 0ms !important;
  }

  .button:active {
    transform: none;
  }

  .float-cta,
  .float-cta.is-visible,
  .float-cta:active {
    transform: none;
  }

  .float-cta__label,
  .float-cta:focus-visible .float-cta__label {
    translate: 0 -50%;
  }

  .site-header.is-hidden {
    transform: none;
  }

  @supports (interpolate-size: allow-keywords) {
    details::details-content {
      transition: none;
    }
  }
}

/* ---------- Rolagem: cada bloco chega quando o leitor chega nele ---------- */

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block;
      animation: grow-x linear both;
      animation-timeline: scroll(root block);
    }
  }

  @supports (animation-timeline: view()) {
    /* Títulos entram em foco: sobem um pouco e perdem o desfoque. */
    .section-title,
    .faq__title {
      animation: title-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }

    /* Textos de abertura chegam logo depois do título. */
    .section-intro,
    .statue-section__lead,
    .principles__quote,
    .profile__credential,
    .profile__bio,
    .faq__lead,
    .faq__more {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 30%;
    }

    /* Listas aparecem como listas: cada item no seu ritmo, conforme a rolagem. */
    .front,
    .atlas__group,
    .fact,
    .faq__item,
    .howto li,
    .channel {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }

    /* Colunas lado a lado: da esquerda para a direita. */
    .kind {
      animation: rise-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }

    .kind:nth-child(2) {
      animation-range: entry 6% cover 30%;
    }

    .kind:nth-child(3) {
      animation-range: entry 12% cover 36%;
    }

    /* Mapa: as divisas se desenham uma vez; nomes e cidades aparecem juntos, sem pulos. */
    .atlas {
      view-timeline: --atlas block;
    }

    .atlas__state {
      stroke-dasharray: 1;
      animation: border-draw linear both;
      animation-timeline: --atlas;
      animation-range: entry 10% cover 32%;
    }

    .atlas__state-name,
    .atlas__glow,
    .atlas__cities {
      animation: city-in linear both;
      animation-timeline: --atlas;
      animation-range: cover 24% cover 36%;
    }

    /* O cartão da mensagem sobe como uma folha. */
    .composer {
      animation: card-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 30%;
    }

    /* Ao sair da abertura, o texto sobe mais devagar que a página e o retrato desce: profundidade. */
    .hero__copy {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
  }
}

@keyframes border-draw {
  from {
    stroke-dashoffset: 1;
    fill-opacity: 0;
  }
  60% {
    fill-opacity: 0;
  }
  to {
    stroke-dashoffset: 0;
    fill-opacity: 1;
  }
}

@keyframes city-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes grow-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(0.35em);
  }
  to {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-drift {
  to {
    opacity: 0.25;
    transform: translateY(-12%);
  }
}

@keyframes word-rise {
  from {
    transform: translateY(110%);
  }
}

/* Entra já visível (só foco e deslocamento): o texto conta para o LCP desde a primeira pintura. */
@keyframes settle-in {
  from {
    filter: blur(6px);
    transform: translateY(10px);
  }
}

@keyframes curtain {
  from {
    clip-path: inset(100% 0 0 0);
    transform: scale(1.12);
  }
  to {
    clip-path: inset(0 0 0 0);
    transform: scale(1);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes portrait-sink {
  to {
    transform: translateY(14%);
  }
}

@keyframes draw-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes draw-y {
  from {
    transform: scaleY(0);
  }
}

@keyframes photo-open {
  from {
    clip-path: inset(22% 0 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes photo-settle {
  from {
    transform: scale(1.1);
  }
  to {
    transform: scale(1);
  }
}

/* O padrão é o ponto cheio e o prazo em azul; a rolagem só parte do estado vazio. */
@keyframes step-fill {
  from {
    background-color: var(--cream);
  }
}

@keyframes days-count {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes hand-turn {
  from {
    rotate: -150deg;
  }
  to {
    rotate: 210deg;
  }
}

@keyframes step-ink {
  from {
    color: var(--ink-soft);
  }
}
