/* Maylson Cruz | Odontologia, link na bio
   Paleta tirada do próprio logo: o preto quente dos posts, o degradê bronze → prata
   do monograma (só em linhas) e o esmalte do dente como fundo de leitura. O bronze
   escuro fica reservado para a ação de mandar mensagem. O único movimento que não
   vem do toque é o traço do monograma, desenhado uma vez na abertura. */

:root {
  --carvao: #1C1714;
  --carvao-2: #27201B;
  --esmalte: #EDEAE5;
  --esmalte-2: #E3DED7;
  --tinta: #26201C;
  --tinta-suave: #5A4F47;
  --bronze: #C4925C;
  --prata: #DEDEDA;
  --prata-suave: #B9B2AA;
  --bronze-fundo: #7A4F25;
  --bronze-press: #633F1C;
  --linha: #D3CCC3;
  --foco: #7A4F25;
  --foco-escuro: #E2C9A6;

  --f-marca: "Josefin Sans", "Futura", "Century Gothic", "Segoe UI", sans-serif;
  --f-texto: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 450ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);
  --shift-sm: 8px;
  --press-scale: 0.98;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
  --maxw: 560px;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift-sm: 0px;
    --press-scale: 1;
    --motion-scene: 200ms;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--carvao);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--esmalte);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
  border-radius: 4px;
}

.marco-scroll {
  position: absolute;
  top: 160px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---------- Hero: a sala de imagem ---------- */

.hero {
  position: relative;
  background: var(--carvao);
  color: var(--prata);
}

.hero :focus-visible { outline-color: var(--foco-escuro); }

.hero-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: var(--maxw);
  min-height: 80vh;
  min-height: 80svh;
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) var(--gutter) 56px;
  text-align: center;
}

.perfil {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  min-height: 48px;
  padding: 4px 14px 4px 4px;
  border-radius: 999px;
  color: var(--prata);
  font-size: 14px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--motion-fast) var(--ease-standard);
}
.perfil:active { background: var(--carvao-2); }
.perfil img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(196 146 92 / 0.6);
}

.monograma {
  width: min(52vw, 196px);
  height: auto;
  margin: 28px 0 22px;
  overflow: visible;
}

.marca {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  font-family: var(--f-marca);
  font-weight: 300;
  line-height: 1.1;
}
.marca-nome {
  font-size: clamp(26px, 8.4vw, 38px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F3F1EE;
  /* compensa o espaçamento da última letra para centralizar de verdade */
  margin-right: -0.1em;
}
.marca-area {
  margin-top: 10px;
  margin-right: -0.42em;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--bronze);
}

.proposta {
  max-width: 30ch;
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.5;
  color: #F3F1EE;
  text-wrap: balance;
}

.papeis {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  color: var(--prata-suave);
}
.papeis li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.papeis i {
  width: 18px;
  color: var(--bronze);
  font-size: 14px;
}

.ancora {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: auto;
  padding: 12px 8px 0;
  color: var(--prata);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: rgb(196 146 92 / 0.6);
  text-underline-offset: 5px;
}
.ancora i { font-size: 12px; color: var(--bronze); }

.hero-arco {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 34px;
  display: block;
}
.hero-arco-fundo { fill: var(--esmalte); }
.hero-arco-linha {
  fill: none;
  stroke: var(--bronze);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

/* Traço do monograma: assinatura da página.
   Sem JS ou com reduced motion, o desenho já nasce completo. */
.traco path { stroke-dasharray: 1; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js .traco path {
    animation: desenha 640ms var(--ease-emphasis) both;
  }
  .js .traco .t-2 { animation-delay: 200ms; animation-duration: 420ms; }
  .js .traco .t-3 { animation-delay: 300ms; animation-duration: 480ms; }
}
@keyframes desenha { from { stroke-dashoffset: 1; } }

@media (prefers-reduced-motion: reduce) {
  .js .monograma { animation: surge var(--motion-scene) var(--ease-standard) both; }
}
@keyframes surge { from { opacity: 0; } }

/* ---------- Corpo ---------- */

main > section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.titulo {
  margin: 0;
  font-family: var(--f-marca);
  font-weight: 400;
  font-size: clamp(28px, 8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.005em;
  color: var(--tinta);
  text-wrap: balance;
}

.intro {
  max-width: 40ch;
  margin-top: 12px;
  color: var(--tinta-suave);
}

/* Quatro olhares: lista expansível, não cards */
.olhares { padding-top: 40px; }

.lentes {
  margin-top: 24px;
  border-top: 1px solid var(--linha);
}

.lente { border-bottom: 1px solid var(--linha); }

.lente summary {
  display: grid;
  grid-template-columns: 36px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 4px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color var(--motion-instant) var(--ease-standard);
}
.lente summary::-webkit-details-marker { display: none; }
.lente summary:active { background: var(--esmalte-2); }

.lente-icone {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  color: var(--bronze-fundo);
  font-size: 14px;
}

.lente-cabeca { display: grid; gap: 2px; }
.lente-cabeca strong {
  font-family: var(--f-marca);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.2;
}
.lente-cabeca span { font-size: 15px; color: var(--tinta-suave); }

.lente-seta {
  justify-self: end;
  font-size: 13px;
  color: var(--bronze-fundo);
  transition: transform var(--motion-standard) var(--ease-standard);
}
.lente[open] .lente-seta { transform: rotate(180deg); }
.lente[open] .lente-icone { background: var(--bronze-fundo); border-color: var(--bronze-fundo); color: var(--esmalte); }

.lente-corpo {
  display: grid;
  gap: 14px;
  padding: 2px 4px 22px 52px;
}
.lente[open] .lente-corpo {
  animation: abre var(--motion-standard) var(--ease-enter);
}
@keyframes abre {
  from { opacity: 0; transform: translateY(calc(var(--shift-sm) * -1)); }
}
.lente-corpo img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

.link-texto {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bronze-fundo);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Não me importa que… */
.acolher { padding-top: 64px; }

.acolher-foto {
  margin: 0 0 28px;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 360 / 350;
}
.acolher-foto img { width: 100%; height: 100%; object-fit: cover; }

.medos {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}
.medos li {
  padding: 8px 0;
  font-size: 18px;
  line-height: 1.45;
  color: var(--tinta-suave);
}
.medos span {
  position: relative;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-image: linear-gradient(var(--bronze), var(--bronze));
  background-repeat: no-repeat;
  background-size: 100% 1.5px;
  background-position: 0 58%;
}
/* com JS, o risco se desenha quando a lista entra na tela */
@media (prefers-reduced-motion: no-preference) {
  .js .medos span {
    background-size: 0% 1.5px;
    transition: background-size var(--motion-scene) var(--ease-emphasis);
  }
  .js .medos li:nth-child(2) span { transition-delay: 90ms; }
  .js .medos li:nth-child(3) span { transition-delay: 180ms; }
  .js .medos li:nth-child(4) span { transition-delay: 270ms; }
  .js .medos li:nth-child(5) span { transition-delay: 360ms; }
  .js .medos.is-in span { background-size: 100% 1.5px; }
}

.papel {
  margin: 28px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--bronze);
}
.papel p {
  font-family: var(--f-marca);
  font-size: 22px;
  line-height: 1.4;
  color: var(--tinta);
}
.papel cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 14px;
  color: var(--tinta-suave);
}

/* Prevenção: lista de posts */
.prevencao { padding-top: 72px; }

.posts {
  display: grid;
  gap: 4px;
  margin-top: 22px;
}
.posts a {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background-color var(--motion-instant) var(--ease-standard),
    transform var(--motion-fast) var(--ease-standard);
}
.posts a:active { background: var(--esmalte-2); transform: scale(var(--press-scale)); }
.posts img {
  width: 76px;
  height: 76px;
  border-radius: 4px;
  object-fit: cover;
}
.post-texto { display: grid; gap: 2px; }
.post-texto strong { font-size: 16px; font-weight: 600; line-height: 1.35; }
.post-texto span { font-size: 15px; line-height: 1.45; color: var(--tinta-suave); }

/* CTA final */
.fim {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 80px;
  padding-bottom: 72px;
  text-align: center;
}
.fim p { margin: 10px 0 26px; color: var(--tinta-suave); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--f-texto);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform var(--motion-fast) var(--ease-standard),
    background-color var(--motion-fast) var(--ease-standard);
}
.btn:active { transform: scale(var(--press-scale)); }

.btn-principal {
  background: var(--bronze-fundo);
  color: #FBF8F4;
}
.btn-principal:active { background: var(--bronze-press); }
.btn-principal i { font-size: 18px; }

.btn-secundario {
  margin-top: 12px;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.btn-secundario:active { background: var(--esmalte-2); }

@media (hover: hover) and (pointer: fine) {
  .btn-principal:hover { background: var(--bronze-press); }
  .btn-secundario:hover,
  .posts a:hover,
  .lente summary:hover { background: var(--esmalte-2); }
}

/* ---------- CTA flutuante (Regra do CTA) ---------- */

.cta-flutuante {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--bronze-fundo);
  color: #FBF8F4;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 28px -10px rgb(28 23 20 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.12) inset;
  -webkit-tap-highlight-color: transparent;
  translate: -50% 16px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--motion-standard) var(--ease-exit),
    translate var(--motion-standard) var(--ease-exit),
    scale var(--motion-fast) var(--ease-standard),
    visibility 0s linear var(--motion-standard);
}
.cta-flutuante i { font-size: 18px; }
.cta-flutuante.is-visivel {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--motion-emphasis) var(--ease-enter),
    translate var(--motion-emphasis) var(--ease-enter),
    scale var(--motion-fast) var(--ease-standard),
    visibility 0s;
}
.cta-flutuante:active { scale: var(--press-scale); background: var(--bronze-press); }
.cta-flutuante:focus-visible { outline-color: var(--carvao); }

@media (prefers-reduced-motion: reduce) {
  .cta-flutuante,
  .cta-flutuante.is-visivel { translate: -50% 0; }
}

/* ---------- Reveal ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--shift-sm));
  transition:
    opacity var(--motion-scene) var(--ease-enter),
    transform var(--motion-scene) var(--ease-enter);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Rodapé ---------- */

.rodape {
  padding: 36px var(--gutter) calc(32px + var(--safe-bottom));
  background: var(--carvao);
  color: #D9D3CB;
  text-align: center;
}
.rodape :focus-visible { outline-color: var(--foco-escuro); }
.copy { font-size: 13px; color: var(--prata-suave); text-wrap: balance; }

.credito {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 18px auto 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  color: #D9D3CB;
  -webkit-tap-highlight-color: transparent;
}
.credito-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: var(--bronze);
  --seal-ring: 0;
  --seal-font: var(--f-texto);
  flex: none;
  width: 68px;
  height: 68px;
  overflow: visible;
  transition: rotate 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.selo-borda,
.selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); opacity: 0.75; }
.selo-texto {
  fill: var(--seal-ink);
  font-family: var(--seal-font);
  font-size: 6.3px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }

.credito:active .selo-b2 { rotate: -10deg; }

.selo-giro {
  transform-box: view-box;
  transform-origin: 50px 50px;
}
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still,
  .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2,
  .is-page-hidden .selo-giro { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .credito:active .selo-b2 { rotate: none; }
}

/* ---------- Telas maiores ---------- */

@media (min-width: 600px) {
  .hero-in { padding-top: calc(28px + var(--safe-top)); }
  .perfil { align-self: center; }
  .hero-arco { height: 48px; }
}
