/* Anderson Toledo, Psicologia e Psicanálise
   Paleta tirada das fotos do consultório: parede de pedra, estante verde-garrafa,
   luz de abajur. */

:root {
  --stone: #e7e6de;
  --linen: #f5f4ef;
  --ink: #1e2a25;
  --ink-soft: #4d5750;
  --moss: #3e584a;
  --moss-deep: #2f4539;
  --lamp: #dda04f;
  --rule: #c9c9bd;
  --error: #9a3b28;

  --font-display: "Newsreader", Georgia, serif;
  --font-sans: "Schibsted Grotesk", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: 1rem;
  --section: clamp(3.75rem, 9vw, 7rem);
  --h2: clamp(2rem, 4.2vw, 3.3rem);
}

@media (min-width: 640px) {
  :root {
    --gutter: 1.5rem;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 2.5rem;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
::selection {
  background: var(--lamp);
  color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--lamp);
  outline-offset: 3px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--section);
}
.dark {
  background: var(--ink);
  color: var(--linen);
}
.band {
  background: var(--linen);
  border-top: 1px solid var(--rule);
}
.h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.2;
}
.muted {
  color: var(--ink-soft);
}
.dark .muted {
  color: color-mix(in oklab, var(--linen) 80%, transparent);
}
.serif {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.7;
}
.stack > * + * {
  margin-top: 1.4rem;
}
.lead {
  margin-top: 1.5rem;
  max-width: 30rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 60;
  background: var(--linen);
  padding: 0.6rem 1rem;
  border-radius: 6px;
}
.skip:focus {
  top: 1rem;
}
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 0.2s;
}
.link:hover {
  text-decoration-color: var(--lamp);
}
.icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}
.btn-primary {
  background: var(--moss);
  color: var(--linen);
}
.btn-primary:hover {
  background: var(--moss-deep);
}
.btn-primary:disabled {
  opacity: 0.7;
  cursor: progress;
}
.btn-ghost {
  border: 1px solid currentColor;
  color: var(--moss);
}
.btn-ghost:hover {
  background: color-mix(in oklab, var(--moss) 8%, transparent);
}
.btn-sm {
  min-height: 2.6rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--stone) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in oklab, var(--rule) 70%, transparent);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.wordmark strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.wordmark span {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.nav {
  display: none;
}
.nav ul {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
}
.nav a {
  padding-block: 0.5rem;
}
.nav a:hover {
  color: var(--moss);
}
@media (min-width: 820px) {
  .nav {
    display: block;
  }
}

/* ---------- Hero e título com eco ---------- */
.hero {
  overflow: hidden;
  padding: clamp(3rem, 6vw, 4rem) 0 clamp(5rem, 9vw, 7rem);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero h1 .second {
  display: block;
  margin-top: 0.12em;
  color: var(--moss);
  text-wrap: balance;
}

/* A primeira linha se repete, cada vez mais apagada: o que insiste em voltar.
   Os ecos ocupam espaço real no fluxo e, ao carregar, descem de trás da linha
   principal (translate em % da própria altura, então funciona com 1 ou 2 linhas). */
.echo {
  display: block;
}
.echo > span {
  display: block;
  text-wrap: balance;
}
.echo .main {
  position: relative;
  z-index: 1;
}
.echo .ghost {
  color: var(--moss);
  user-select: none;
  opacity: var(--op);
  animation: echo-settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s both;
}
.echo .ghost:nth-child(2) {
  --from: -100%;
  --op: 0.24;
}
.echo .ghost:nth-child(3) {
  --from: -200%;
  --op: 0.09;
  animation-delay: 0.55s;
}
@keyframes echo-settle {
  from {
    transform: translateY(var(--from));
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: var(--op);
  }
}
@media (prefers-reduced-motion: reduce) {
  .echo .ghost {
    animation: none;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  margin-top: 3rem;
}
.hero-copy {
  max-width: 34rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.credit {
  margin-top: 2rem;
  font-size: 0.92rem;
}
/* Foto em arco, como uma janela do consultório. Atrás dela, uma moldura fina
   deslocada: o mesmo "eco" do título, que se afasta da foto ao carregar. */
.hero-photo {
  position: relative;
  width: min(100%, 21rem);
  margin-inline: auto;
  padding: 0 1.1rem 1.1rem 0;
}
.hero-photo picture {
  position: relative;
  z-index: 1;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  box-shadow: 0 30px 60px -30px rgba(30, 42, 37, 0.55);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  animation: photo-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
.hero-frame {
  position: absolute;
  inset: 1.1rem 0 0 1.1rem;
  border: 1.5px solid var(--moss);
  border-radius: 999px 999px 6px 6px;
  opacity: 0.55;
  animation: frame-out 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.6s both;
}
.hero-frame::after {
  /* ponto de luz do abajur na moldura */
  content: "";
  position: absolute;
  top: 22%;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 18px 6px color-mix(in oklab, var(--lamp) 55%, transparent);
}
@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes frame-out {
  from {
    transform: translate(-1.1rem, -1.1rem);
    opacity: 0;
  }
  to {
    transform: translate(0, 0);
    opacity: 0.55;
  }
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
  }
  .hero-photo {
    width: 100%;
    max-width: 27rem;
    margin: 0 0 0 auto;
  }
}

/* ---------- Grades de duas colunas ---------- */
.split {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 3.5rem;
  }
  .split > :first-child {
    grid-column: span 5;
  }
  .split > :last-child {
    grid-column: 7 / span 6;
  }
  .split.narrow-left > :first-child {
    grid-column: span 4;
  }
  .split.narrow-left > :last-child {
    grid-column: 6 / span 7;
  }
}

/* ---------- Carta ---------- */
.letter {
  max-width: 36rem;
}
.letter .closing {
  border-left: 2px solid var(--lamp);
  padding-left: 1.25rem;
  color: var(--linen);
}
@media (min-width: 1024px) {
  .letter {
    padding-top: 0.75rem;
  }
}

/* ---------- Abordagem ---------- */
.approach > div {
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule);
}
.approach > div:first-child {
  border-top: 0;
  padding-top: 0;
}
.approach dt {
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
}
.approach dd {
  margin-top: 0.5rem;
  max-width: 34rem;
  color: var(--ink-soft);
}

/* ---------- Temas (abas) ----------
   Os temas não selecionados ficam esmaecidos, como os ecos do título. */
.themes-cta {
  margin-top: 2rem;
}
.theme-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.theme-list button {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.4rem;
  background: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.2;
  text-align: left;
  opacity: 0.32;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}
.theme-list button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.25rem;
  border-radius: 50%;
  background: var(--lamp);
  transform: scale(0);
  transition: transform 0.35s ease;
}
.theme-list button:hover {
  opacity: 0.65;
}
.theme-list button[aria-selected="true"] {
  opacity: 1;
  transform: translateX(0.25rem);
}
.theme-list button[aria-selected="true"]::before {
  transform: scale(1);
  box-shadow: 0 0 12px 3px color-mix(in oklab, var(--lamp) 45%, transparent);
}
.theme-panels {
  margin-top: 1.75rem;
  padding: 1.25rem 0 0 1.4rem;
  border-top: 1px solid var(--rule);
  min-height: 7.5rem;
  max-width: 34rem;
}
.theme-panels p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.theme-panels p.entering {
  animation: come-into-focus 0.6s ease both;
}
@keyframes come-into-focus {
  from {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}

/* ---------- Sobre ---------- */
.about {
  display: grid;
}
.about-photo {
  min-height: 22rem;
  position: relative;
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 40%;
}
.about-text {
  padding: 5rem var(--gutter);
}
.about-text > div {
  max-width: 36rem;
}
.crp {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--lamp);
}
.training-title {
  margin-top: 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.training {
  margin-top: 0.75rem;
  border-block: 1px solid color-mix(in oklab, var(--linen) 15%, transparent);
}
.training li {
  padding-block: 0.8rem;
  color: color-mix(in oklab, var(--linen) 85%, transparent);
}
.training li + li {
  border-top: 1px solid color-mix(in oklab, var(--linen) 15%, transparent);
}
.about-closing {
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .about-photo {
    min-height: 30rem;
  }
  .about-text {
    padding: 6rem 2.5rem;
  }
}
@media (min-width: 1024px) {
  .about {
    grid-template-columns: 1fr 1fr;
  }
  .about-text {
    padding: 7rem 4rem;
  }
}

/* ---------- Avaliações (carrossel) ---------- */
.reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.reviews-head .h2 {
  max-width: 36rem;
}
.rating-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.g-mark {
  width: 1.3rem;
  height: 1.3rem;
}
.rating-line .stars {
  color: #b87a22;
  letter-spacing: 0.05em;
}
.carousel-nav {
  display: flex;
  gap: 0.5rem;
}
.round-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--linen);
  color: var(--ink);
  transition:
    border-color 0.2s,
    opacity 0.2s;
}
.round-btn:hover:not(:disabled) {
  border-color: var(--ink);
}
.round-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* A faixa rola até a borda da tela, mas começa alinhada ao conteúdo. */
.reviews-track {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 0.25rem var(--edge) 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  align-items: stretch;
}
.reviews-track::-webkit-scrollbar {
  display: none;
}
.review {
  flex: 0 0 min(84vw, 23rem);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--linen);
  border: 1px solid color-mix(in oklab, var(--rule) 70%, transparent);
  border-radius: 14px;
}
.review blockquote {
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.55;
}
/* Todos os cards têm a mesma altura; textos longos param em 7 linhas. */
.review .quote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}
.review.expanded .quote {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: none;
}
.read-more {
  margin-top: 0.5rem;
  padding: 0;
  background: none;
  color: var(--moss);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.review-author small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--moss);
  color: var(--linen);
  font-family: var(--font-display);
  font-size: 1.1rem;
  overflow: hidden;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review .stars {
  color: #b87a22;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.reviews-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: var(--moss);
}

/* ---------- Dúvidas ---------- */
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq details:first-child {
  border-top: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .icon {
  margin-top: 0.3rem;
  color: var(--moss);
  transition: transform 0.25s ease;
}
.faq details[open] summary .icon {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 40rem;
  padding: 0 2.5rem 1.75rem 0;
  color: var(--ink-soft);
}

/* ---------- Agendamento ---------- */
.contact-list {
  margin-top: 3rem;
}
.contact-list li {
  display: flex;
  gap: 1rem;
  color: color-mix(in oklab, var(--linen) 85%, transparent);
}
.contact-list li + li {
  margin-top: 1.25rem;
}
.contact-list .icon {
  margin-top: 0.25rem;
  color: var(--lamp);
}
.contact-list a {
  overflow-wrap: anywhere;
}
.form-panel {
  background: var(--linen);
  color: var(--ink);
  border-radius: 14px;
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .form-panel {
    padding: 2.5rem;
  }
}

.booking-form {
  display: grid;
  gap: 1.35rem;
}
.row-2 {
  display: grid;
  gap: 1.35rem;
}
@media (min-width: 640px) {
  .row-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}
.field > label,
.field > legend {
  font-weight: 600;
  font-size: 0.95rem;
}
.field legend {
  margin-bottom: 0.5rem;
}
.optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.field input:not([type="radio"], [type="checkbox"]),
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field textarea {
  resize: vertical;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--moss);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--lamp) 55%, transparent);
}
.field [aria-invalid="true"] {
  border-color: #a8432f !important;
}
.field-error {
  color: var(--error);
  font-size: 0.9rem;
}
.field-hint {
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.form-alert {
  padding: 0.8rem 1rem;
  border-left: 3px solid #a8432f;
  background: #f7e9e4;
  color: #6f2a1c;
  font-size: 0.95rem;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: inline-block;
  padding: 0.55rem 1rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 0.95rem;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.choice input:checked + span {
  background: var(--moss);
  border-color: var(--moss);
  color: var(--linen);
}
.choice input:focus-visible + span {
  outline: 2px solid var(--lamp);
  outline-offset: 2px;
}
.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent input {
  margin-top: 0.2rem;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  accent-color: var(--moss);
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.booking-form .btn {
  width: 100%;
}
@media (min-width: 640px) {
  .booking-form .btn {
    width: auto;
    justify-self: start;
  }
}
.booking-done .title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  line-height: 1.2;
}
.booking-done p + p {
  margin-top: 1rem;
}
[hidden] {
  display: none !important;
}

/* ---------- Rodapé ---------- */
.footer {
  padding-bottom: 2.5rem;
  font-size: 0.9rem;
  color: color-mix(in oklab, var(--linen) 70%, transparent);
}
.footer .wrap > div {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in oklab, var(--linen) 15%, transparent);
}
.footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.footer a:hover {
  color: var(--linen);
}
@media (min-width: 640px) {
  .footer .wrap > div {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- WhatsApp flutuante ---------- */
.float-wa {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(30, 42, 37, 0.45);
}
.float-wa svg {
  width: 1.9rem;
  height: 1.9rem;
}
@media (min-width: 640px) {
  .float-wa {
    right: 1.5rem;
    bottom: 1.5rem;
  }
}

/* O rótulo do consentimento é texto corrido, não título de campo. */
.field > label.consent {
  font-weight: 400;
  font-size: 0.9rem;
}

/* ---------- Movimento ligado ao tema ----------
   1. Carta: cada palavra sai do desfoque conforme a pessoa rola, como algo que
      finalmente encontra palavras; a luz do abajur acende junto (--p = 0..1).
   2. Títulos: as palavras sobem uma a uma de trás de uma máscara, entrando em foco.
   Tudo é ativado pelo main.js só quando o usuário não pediu movimento reduzido. */
.letter-section {
  position: relative;
  overflow: hidden;
  --p: 1;
}
.letter-section .wrap {
  position: relative;
}
.lamp-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 52rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--lamp) 38%, transparent), transparent);
  opacity: calc(0.15 + var(--p) * 0.85);
  pointer-events: none;
}
.motion .letter .w {
  opacity: 0.16;
  filter: blur(4px);
  transition:
    opacity 0.6s ease,
    filter 0.6s ease;
}
.motion .letter .w.lit {
  opacity: 1;
  filter: blur(0);
}

/* Títulos, variação "rise": palavras sobem de trás de uma máscara e saem do desfoque. */
.reveal-rise .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* espaço para acentos e descendentes não serem cortados pela máscara */
  padding: 0.32em 0.04em 0.16em;
  margin: -0.32em -0.04em -0.16em;
}
.reveal-rise .word-inner {
  display: inline-block;
  transform: translateY(125%) rotate(5deg);
  transform-origin: left bottom;
  opacity: 0;
  filter: blur(10px);
  transition:
    transform 1.5s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 1.2s ease,
    filter 1.5s ease;
  transition-delay: calc(var(--i) * 130ms);
}
.reveal-rise.is-in .word-inner {
  transform: none;
  opacity: 1;
  filter: blur(0);
}

/* Variação "focus": palavras saem do desfoque no lugar, sem se mover. */
.reveal-focus .word-inner {
  display: inline-block;
  opacity: 0.08;
  filter: blur(12px);
  transition:
    opacity 1.3s ease,
    filter 1.3s ease;
  transition-delay: calc(var(--i) * 70ms);
}
.reveal-focus.is-in .word-inner {
  opacity: 1;
  filter: blur(0);
}

/* Variação "wipe": o título se revela da esquerda para a direita, borda suave.
   fit-content faz a máscara medir o texto, não a coluna, e a curva quase linear
   distribui a revelação por toda a duração. */
.reveal-wipe {
  width: fit-content;
  -webkit-mask-image: linear-gradient(90deg, #000 38%, transparent 62%);
  mask-image: linear-gradient(90deg, #000 38%, transparent 62%);
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition:
    -webkit-mask-position 3.2s cubic-bezier(0.37, 0, 0.63, 1),
    mask-position 3.2s cubic-bezier(0.37, 0, 0.63, 1);
}
.reveal-wipe.is-in {
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}

.lead-reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(4px);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(0.33, 1, 0.68, 1),
    filter 1.2s ease;
  transition-delay: var(--d, 0.6s);
}
.lead-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img,
  .hero-frame {
    animation: none;
  }
  .theme-panels p.entering {
    animation: none;
  }
}

/* ---------- Menu do celular (padrão Sheet do shadcn/ui) ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
}
.menu-btn .icon {
  width: 1.25rem;
  height: 1.25rem;
}
@media (min-width: 820px) {
  .header-actions .menu-btn {
    display: none;
  }
}
.sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(86vw, 24rem);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 1.25rem 1.5rem 2rem;
  border: 0;
  background: var(--ink);
  color: var(--linen);
  display: none;
  flex-direction: column;
}
.sheet[open] {
  display: flex;
  animation: sheet-in 0.5s cubic-bezier(0.33, 1, 0.68, 1) both;
}
.sheet.closing {
  animation: sheet-out 0.3s ease-in both;
}
.sheet::backdrop {
  background: rgba(20, 28, 25, 0.5);
  backdrop-filter: blur(3px);
  animation: fade-in 0.4s ease both;
}
.sheet.closing::backdrop {
  animation: fade-out 0.3s ease both;
}
.sheet .wordmark span {
  color: color-mix(in oklab, var(--linen) 65%, transparent);
}
.sheet .menu-btn {
  color: var(--linen);
  border-color: color-mix(in oklab, var(--linen) 25%, transparent);
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-links {
  margin-top: 3rem;
}
.sheet-links li {
  overflow: hidden;
  border-bottom: 1px solid color-mix(in oklab, var(--linen) 12%, transparent);
}
.sheet-links a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.15;
}
.sheet[open] .sheet-links a {
  animation: word-up 0.9s cubic-bezier(0.33, 1, 0.68, 1) both;
  animation-delay: calc(0.15s + var(--i) * 80ms);
}
.sheet-foot {
  display: grid;
  gap: 0.75rem;
  margin-top: auto;
}
.sheet-foot .btn-ghost {
  color: var(--linen);
}
@keyframes sheet-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: none;
  }
}
@keyframes sheet-out {
  to {
    transform: translateX(100%);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes word-up {
  from {
    transform: translateY(110%);
    opacity: 0;
    filter: blur(6px);
  }
  to {
    transform: none;
    opacity: 1;
    filter: blur(0);
  }
}

/* ---------- FAQ: altura animada (padrão Accordion do shadcn/ui) ---------- */
.faq-body {
  overflow: hidden;
}
.faq-body p {
  transition:
    opacity 0.5s ease,
    filter 0.5s ease,
    transform 0.5s ease;
}
.faq details.is-closing .faq-body p,
.faq details:not([open]) .faq-body p {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-6px);
}

@media (prefers-reduced-motion: reduce) {
  .sheet[open],
  .sheet.closing,
  .sheet::backdrop,
  .sheet[open] .sheet-links a {
    animation: none;
  }
}

/* ---------- Colunas da esquerda que acompanham a rolagem ----------
   Em telas largas, o título fica parado enquanto o conteúdo da direita passa,
   e se solta no fim da seção. */
@media (min-width: 1024px) {
  .split.sticky-left > :first-child {
    position: sticky;
    top: 6.5rem;
    align-self: start;
  }

  /* Temas: o botão desce e se alinha com o fim do texto do tema. */
  .themes-intro {
    display: flex;
    flex-direction: column;
  }
  .themes-intro .themes-cta {
    margin-top: auto;
    align-self: flex-start;
  }
}

/* Safari no iPhone dá ao campo de data uma largura mínima própria e ignora
   width: 100%, fazendo o campo vazar no celular. */
.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  min-width: 0;
  max-width: 100%;
  line-height: 1.4;
  text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
}
.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.6;
}

.btn-wa {
  background: #25d366;
  color: #0b3d20;
}
.btn-wa:hover {
  background: #1ebe5a;
}

/* O painel do formulário é claro, mesmo dentro da seção escura. */
.dark .form-panel .muted {
  color: var(--ink-soft);
}
