@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-var.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;

  --gold: #BFB377;
  --bronze: #8A6F3C;
  --night: #1A2233;
  --paper: #F5F1E8;
  --graphite: #484848;
  --logo-bg: #1F1F1F;

  --ink: var(--night);
  --muted: var(--graphite);
  /* Bronze légèrement aprofundado para texto pequeno AA sobre papel. */
  --accent-ink: color-mix(in srgb, var(--bronze) 85%, var(--night));
  --line: color-mix(in srgb, var(--bronze) 26%, var(--paper));
  --line-dark: color-mix(in srgb, var(--gold) 28%, var(--night));
  --paper-raised: color-mix(in srgb, var(--paper) 97%, var(--gold));
  --paper-muted: color-mix(in srgb, var(--paper) 91%, var(--gold));
  --night-raised: color-mix(in srgb, var(--night) 88%, var(--graphite));
  --text-on-dark: color-mix(in srgb, var(--paper) 83%, var(--gold));
  --signature-gradient: linear-gradient(
    130deg,
    oklch(0.92 0.032 75) 0%,
    oklch(0.96 0.024 80) 52%,
    oklch(0.99 0.012 85) 100%
  );

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --container: 80rem;
  --gutter: clamp(1.125rem, 4vw, 3rem);
  --section-space: clamp(4rem, 8vw, 8rem);
  --radius-sm: 0.375rem;
  --radius: 0.875rem;
  --radius-lg: 1.5rem;

  --shadow-sm: 0 0.5rem 1.5rem color-mix(in srgb, var(--night) 7%, transparent);
  --shadow: 0 1.5rem 4rem color-mix(in srgb, var(--night) 12%, transparent);
  --shadow-dark: 0 1.5rem 4rem color-mix(in srgb, var(--logo-bg) 35%, transparent);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --slow: 500ms;
  --consent-offset: 0rem;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body:has(#privacy-banner:not([hidden]):not([aria-hidden="true"])) {
  --consent-offset: 15rem;
}

::selection {
  background: var(--gold);
  color: var(--night);
}

[hidden] {
  display: none !important;
}

[inert] {
  pointer-events: none;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

iframe {
  display: block;
  max-width: 100%;
  border: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input,
select,
textarea,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
select {
  cursor: pointer;
}

button {
  color: inherit;
}

button,
input,
select,
textarea {
  border-radius: var(--radius-sm);
}

button {
  margin: 0;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration-thickness: 0.065em;
  text-underline-offset: 0.22em;
}

a,
button,
summary,
input,
select,
textarea {
  touch-action: manipulation;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 450;
  line-height: 1.14;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 6.1vw, 5.65rem);
}

h2 {
  font-size: clamp(2.125rem, 4vw, 3.75rem);
}

h3 {
  font-size: clamp(1.375rem, 2vw, 1.875rem);
}

h4 {
  font-size: 1.25rem;
}

p,
li,
a,
button,
label,
address {
  overflow-wrap: anywhere;
}

p {
  text-wrap: pretty;
}

p + p {
  margin-top: 1rem;
}

ul,
ol {
  margin-block: 0;
  padding-inline-start: 1.25rem;
}

address {
  font-style: normal;
}

strong {
  font-weight: 650;
}

small,
.small {
  font-size: 0.8125rem;
  line-height: 1.55;
}

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

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

.section-paper {
  background: var(--paper);
}

.section-gradient {
  background: var(--paper-raised);
  background-image: var(--signature-gradient);
}

.section-dark {
  background: var(--night);
  color: var(--paper);
  --ink: var(--paper);
  --muted: var(--text-on-dark);
  --accent-ink: var(--gold);
  --line: var(--line-dark);
}

.section-dark :focus-visible,
.site-footer :focus-visible,
.mobile-menu :focus-visible,
.hero-art :focus-visible {
  outline-color: var(--gold);
}

.section-heading {
  max-width: 47rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading > p:not(.eyebrow) {
  max-width: 42rem;
  margin-top: 1.125rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.split-heading {
  display: grid;
  gap: 1.5rem;
  max-width: none;
  align-items: end;
}

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.section-footnote {
  max-width: 52rem;
  margin-top: 1.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

#topo,
#inicio,
#conteudo,
#credenciais,
#temas,
#escuta,
#professor,
#relatos,
#quando-procurar,
#perguntas,
#localizacao,
#contato,
#privacidade,
#termos {
  scroll-margin-top: 1.5rem;
}

#hero-title,
#authority-title,
#themes-title,
#listening-title,
#professor-title,
#reviews-title,
#checklist-title,
#faq-title,
#location-title,
#contact-title {
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  z-index: 200;
  inset: 0.75rem auto auto 0.75rem;
  max-width: calc(100% - 1.5rem);
  padding: 0.875rem 1.25rem;
  transform: translateY(-180%);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--gold);
}

/* Ações */
.button {
  display: inline-flex;
  min-height: 3.25rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.375rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition:
    background var(--fast) ease,
    border-color var(--fast) ease,
    box-shadow var(--fast) ease,
    transform var(--fast) var(--ease);
}

.button svg,
.icon-button svg,
.floating-wa svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
}

.button-dark {
  border-color: var(--night);
  background: var(--night);
  color: var(--paper);
  box-shadow: var(--shadow-sm);
}

.button-gold {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--night);
}

.button-outline {
  border-color: currentColor;
  background: transparent;
  color: var(--accent-ink);
}

.text-link,
.text-button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.text-button {
  padding: 0.375rem 0;
  border: 0;
  background: transparent;
  text-align: start;
}

.icon-button {
  display: inline-grid;
  width: 2.875rem;
  height: 2.875rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0.625rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition:
    background var(--fast) ease,
    border-color var(--fast) ease,
    transform var(--fast) var(--ease);
}

.button:disabled,
.button[aria-disabled="true"],
.icon-button:disabled,
.icon-button[aria-disabled="true"] {
  opacity: 0.55;
  box-shadow: none;
  cursor: not-allowed;
}

/* Cabeçalho: deliberadamente no fluxo, nunca fixo. */
.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.header-inner {
  display: flex;
  min-height: 5.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.875rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: var(--night);
  text-decoration: none;
}

.brand > img {
  width: 3.75rem;
  height: 3.75rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
  background: var(--logo-bg);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 500;
  line-height: 1.2;
}

.brand small {
  display: block;
  margin-top: 0.25rem;
  color: var(--graphite);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
}

.brand-symbol {
  position: relative;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--logo-bg);
  color: var(--gold);
}

.brand-symbol img,
.brand-symbol svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-orbit {
  position: absolute;
  inset: 8%;
  border: 1px solid color-mix(in srgb, var(--gold) 65%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 1.875rem);
}

.desktop-nav a {
  padding-block: 0.625rem;
  color: var(--graphite);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--fast) ease;
}

.header-cta {
  display: none;
  flex: 0 0 auto;
}

.menu-toggle,
#menu-toggle {
  display: inline-grid;
  width: 2.875rem;
  height: 2.875rem;
  flex: 0 0 auto;
  place-items: center;
  padding: 0.625rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--night);
}

.menu-toggle svg {
  width: 1.375rem;
  height: 1.375rem;
}

.mobile-menu,
#mobile-menu {
  position: fixed;
  z-index: 100;
  inset: max(0.75rem, env(safe-area-inset-top)) 0.75rem auto;
  width: auto;
  max-width: 35rem;
  max-height: calc(100svh - 1.5rem);
  margin: 0 0 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--night);
  color: var(--paper);
  box-shadow: var(--shadow-dark);
}

.mobile-menu[aria-hidden="true"] {
  display: none;
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-dark);
}

#menu-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
}

#menu-close {
  position: relative;
  z-index: 2;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-color: var(--line-dark);
  color: var(--paper);
  pointer-events: auto;
}

.mobile-menu nav,
.mobile-menu ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-menu a:not(.button):not(.brand) {
  display: block;
  padding: 0.875rem 0.25rem;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}

.mobile-menu .button {
  width: 100%;
  margin-top: 1.25rem;
}

/* Hero: papel, marca original e órbitas douradas. */
.hero {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 6rem) 0;
  background: var(--paper);
  background-image:
    radial-gradient(
      ellipse at 90% 15%,
      color-mix(in srgb, var(--gold) 13%, transparent),
      transparent 55%
    );
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero-grid > *,
.contact-grid > *,
.location-grid > *,
.professor-grid > *,
.listening-grid > *,
.checklist-grid > *,
.faq-grid > * {
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 45rem;
}

.hero-name {
  display: block;
  margin-bottom: 1.125rem;
  color: var(--accent-ink);
  font-size: 0.8125rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-copy h1 em {
  color: var(--accent-ink);
  font-weight: 400;
}

.hero-copy > p:not(.eyebrow):not(.hero-name) {
  max-width: 35rem;
  margin-top: 1.5rem;
  color: var(--graphite);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.hero-quote {
  max-width: 35rem;
  margin-top: 1.75rem;
  padding-inline-start: 1.125rem;
  border-inline-start: 2px solid var(--gold);
  color: var(--graphite);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.7vw, 1.375rem);
  font-style: italic;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
  margin-top: 2rem;
}

.hero-direct {
  margin-top: 1.25rem;
  color: var(--graphite);
  font-size: 0.875rem;
}

.hero-phones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.125rem;
  margin-top: 0.5rem;
  color: var(--night);
  font-size: 0.9375rem;
}

.hero-phones a {
  min-height: 2.75rem;
  align-content: center;
  font-weight: 650;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem 1.25rem;
  margin-top: 1.75rem;
  color: var(--graphite);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.trust-line > * {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 23rem;
  align-items: center;
  justify-items: center;
  gap: 1.5rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem 2rem;
  border: 1px solid var(--line-dark);
  border-radius: 48% 48% var(--radius) var(--radius);
  background:
    radial-gradient(
      ellipse at 50% 35%,
      color-mix(in srgb, var(--gold) 13%, transparent),
      transparent 65%
    ),
    var(--night);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 115%;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero-art::before {
  inset: 12% auto auto -35%;
  transform: rotate(-22deg) scaleY(0.65);
}

.hero-art::after {
  inset: -15% -42% auto auto;
  transform: rotate(32deg) scaleY(0.78);
}

.hero-art > canvas {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.logo-mat {
  position: relative;
  display: grid;
  width: min(100%, 20rem);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  padding: 0.75rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--logo-bg);
  box-shadow:
    0 0 0 0.75rem color-mix(in srgb, var(--gold) 5%, transparent),
    var(--shadow-dark);
}

.logo-mat img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.art-caption {
  position: relative;
  max-width: 22rem;
  color: var(--text-on-dark);
  font-size: 0.75rem;
  letter-spacing: 0.075em;
  line-height: 1.6;
  text-align: center;
}

.hero-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-block: 1.375rem;
  border-block: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.8125rem;
}

.rating-seal {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.875rem;
  color: var(--accent-ink);
  font-size: 0.875rem;
}

.rating-seal strong {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1;
}

/* Autoridade e credenciais */
.authority {
  position: relative;
  padding-block: clamp(2.75rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.credential-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.credential {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-content: start;
  gap: 0.375rem 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.credential > :not(.credential-index) {
  grid-column: 2;
}

.credential-index {
  grid-column: 1;
  grid-row: 1 / span 3;
  padding-top: 0.15rem;
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.credential h3,
.credential strong {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
}

.credential p,
.credential small {
  color: var(--muted);
  font-size: 0.875rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat {
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.stat-num {
  display: block;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 4.5vw, 4rem);
  font-weight: 450;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.stat p,
.stat small {
  display: block;
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* Estante: livros reais no fluxo; detalhe sempre ao lado ou abaixo. */
#shelf {
  scroll-margin-top: 2rem;
}

.shelf-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  justify-items: center;
  gap: 2rem 1rem;
  width: 100%;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

.book-card {
  --book-color: var(--night);
  --book-foil: var(--gold);
  position: relative;
  display: block;
  width: 100%;
  max-width: 12.5rem;
  aspect-ratio: 2 / 3;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0.1875rem var(--radius-sm) var(--radius-sm) 0.1875rem;
  background: transparent;
  color: var(--paper);
  perspective: 75rem;
  text-align: start;
  isolation: isolate;
  transition: transform var(--slow) var(--ease);
}

.book-card:focus-visible {
  outline-color: var(--accent-ink);
  outline-offset: 0.625rem;
}

.book-depressao {
  --book-color: var(--night);
  --book-foil: var(--gold);
}

.book-ansiedade {
  --book-color: color-mix(in srgb, var(--night) 76%, var(--graphite));
  --book-foil: var(--gold);
}

.book-bipolar {
  --book-color: color-mix(in srgb, var(--night) 82%, var(--bronze));
  --book-foil: var(--gold);
}

.book-toc {
  --book-color: var(--logo-bg);
  --book-foil: var(--gold);
}

.book-psicoses {
  --book-color: color-mix(in srgb, var(--night) 65%, var(--graphite));
  --book-foil: var(--paper);
}

.book-sono {
  --book-color: color-mix(in srgb, var(--logo-bg) 84%, var(--bronze));
  --book-foil: var(--gold);
}

.book {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  transform: rotateY(-8deg);
  transform-style: preserve-3d;
  transition: transform var(--slow) var(--ease);
}

.book-shadow {
  position: absolute;
  z-index: -1;
  inset: auto 6% -0.625rem;
  height: 8%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--night) 28%, transparent);
  filter: blur(0.625rem);
  transform: translateZ(-1.5rem);
  pointer-events: none;
}

.book-back {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--book-foil) 35%, var(--book-color));
  border-radius: inherit;
  background: var(--book-color);
  box-shadow: 0.5rem 0.75rem 1.5rem color-mix(in srgb, var(--night) 18%, transparent);
  transform: translateZ(-0.875rem);
}

.page-block {
  position: absolute;
  inset: 2.2% -2.5% 2.2% 5%;
  border: 1px solid var(--line);
  border-radius: 0 0.1875rem 0.1875rem 0;
  background: repeating-linear-gradient(
    to right,
    var(--paper) 0,
    var(--paper) 2px,
    var(--line) 2px,
    var(--line) 3px
  );
  transform: translateZ(-0.45rem);
}

.page-fan {
  position: absolute;
  inset: 2.5% 0 2.5% 4%;
  border: 1px solid var(--line);
  background: var(--paper-muted);
  transform: translateZ(-0.2rem) rotateY(-2deg);
  transform-origin: left center;
  transition: transform var(--slow) var(--ease);
}

.front-cover {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  padding: clamp(0.75rem, 1.8vw, 1.25rem);
  border: 1px solid color-mix(in srgb, var(--book-foil) 48%, var(--book-color));
  border-radius: 0.1875rem 0.375rem 0.375rem 0.1875rem;
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--logo-bg) 40%, transparent),
      transparent 6%,
      color-mix(in srgb, var(--paper) 5%, transparent) 8%,
      transparent 11%
    ),
    linear-gradient(
      145deg,
      color-mix(in srgb, var(--book-foil) 8%, transparent),
      transparent 62%
    ),
    var(--book-color);
  color: var(--paper);
  box-shadow:
    inset 0 0 0 0.3125rem var(--book-color),
    inset 0 0 0 0.375rem color-mix(in srgb, var(--book-foil) 27%, var(--book-color));
  backface-visibility: hidden;
  transform: rotateY(0deg);
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 650ms var(--ease), box-shadow var(--slow) ease;
}

.cover-kicker {
  position: relative;
  display: block;
  color: var(--book-foil);
  font-size: clamp(0.5625rem, 0.85vw, 0.6875rem);
  font-weight: 650;
  letter-spacing: 0.11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cover-mark {
  position: relative;
  display: grid;
  width: clamp(2.375rem, 5vw, 4rem);
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  margin-block: auto;
  align-self: center;
  border: 1px solid var(--book-foil);
  border-radius: 50%;
  color: var(--book-foil);
}

.cover-mark::before,
.cover-mark::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid color-mix(in srgb, var(--book-foil) 65%, transparent);
  border-radius: 48% 52% 43% 57%;
  pointer-events: none;
}

.cover-mark::after {
  inset: 26% 34% 26% 24%;
  transform: rotate(-20deg);
}

.cover-mark svg,
.cover-mark img {
  width: 65%;
  max-height: 65%;
  object-fit: contain;
}

.cover-title {
  position: relative;
  display: block;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.7vw, 1.625rem);
  font-weight: 450;
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-wrap: balance;
  hyphens: auto;
}

.cover-subtitle {
  display: block;
  margin-top: 0.625rem;
  color: var(--paper);
  font-size: clamp(0.625rem, 0.85vw, 0.75rem);
  line-height: 1.45;
}

.cover-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.375rem;
  margin-top: auto;
  padding-top: 0.75rem;
  color: var(--book-foil);
  font-size: 0.5625rem;
  letter-spacing: 0.045em;
  line-height: 1.4;
}

.cover-open {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--book-foil);
  font-size: 0.625rem;
  font-weight: 700;
}

.interaction-hint {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

.shelf-stage[data-mode="shelf"] .book-panel,
.shelf-stage[data-mode="shelf"] #book-panel {
  display: none;
}

.shelf-stage[data-mode="detail"] {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 2.5rem;
  padding-block: 1.5rem 2rem;
}

.shelf-stage[data-mode="detail"] .book-card:not([aria-expanded="true"]) {
  display: none;
}

.shelf-stage[data-mode="detail"] .book-card[aria-expanded="true"] {
  display: block;
  grid-column: 1;
  width: min(100%, 14.375rem);
  max-width: 14.375rem;
  margin-inline: auto;
  transform: none;
}

.shelf-stage[data-mode="detail"] .book-card[aria-expanded="true"] .book {
  transform: rotateY(0deg);
}

.shelf-stage[data-mode="detail"] .book-card[aria-expanded="true"] .front-cover {
  transform: rotateY(-29deg);
}

.shelf-stage[data-mode="detail"] .book-card[aria-expanded="true"] .page-fan {
  transform: translateZ(-0.2rem) rotateY(-9deg);
}

.book-panel,
#book-panel {
  position: relative;
  z-index: 3;
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  padding: clamp(1.375rem, 3vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  color: var(--night);
  box-shadow: var(--shadow-sm);
}

.panel-head {
  padding-inline-end: 2.875rem;
}

#book-close {
  position: absolute;
  z-index: 20;
  inset: 0.75rem 0.75rem auto auto;
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0.625rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--night);
  cursor: pointer;
  pointer-events: auto;
}

#bp-kicker {
  margin-bottom: 0.75rem;
  padding-inline-end: 2.75rem;
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

#bp-title {
  padding-inline-end: 1.5rem;
  font-size: clamp(1.875rem, 3.5vw, 3rem);
}

#bp-desc {
  max-width: 42rem;
  margin-top: 1.125rem;
  color: var(--graphite);
}

.panel-list,
#bp-list {
  display: grid;
  gap: 0.75rem;
  margin-block: 1.5rem;
  padding-inline-start: 1.125rem;
  color: var(--graphite);
  font-size: 0.9375rem;
}

.panel-list li::marker,
#bp-list li::marker {
  color: var(--accent-ink);
}

.panel-disclaimer {
  margin-block: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--graphite);
  font-size: 0.8125rem;
}

#bp-cta {
  max-width: 100%;
  margin-top: 0.5rem;
}

/* A escuta */
.listening-grid {
  display: grid;
  align-items: start;
  gap: 2.5rem;
}

.listening-intro {
  max-width: 35rem;
}

.listening-intro > p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: var(--muted);
}

.listening-quote {
  position: relative;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.listening-quote cite {
  display: block;
  margin-top: 1.25rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

.listening-pillars {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.listening-pillars > * {
  min-width: 0;
  padding-top: 1.375rem;
  border-top: 1px solid var(--line);
}

.pillar-number {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.listening-pillars h3 {
  margin-bottom: 0.75rem;
}

.listening-pillars p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.listening-note {
  max-width: 50rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.quote-mark {
  display: block;
  height: 0.65em;
  margin-bottom: 0.25em;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 10vw, 8rem);
  line-height: 1;
  pointer-events: none;
}

/* Professor e trajetória */
.professor-grid {
  display: grid;
  align-items: start;
  gap: 3rem;
}

.professor-intro {
  max-width: 38rem;
}

.professor-intro > p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: var(--muted);
}

.professor-quote {
  margin-top: 2rem;
  padding: 1.5rem;
  border-inline-start: 2px solid var(--gold);
  background: var(--paper-muted);
  color: var(--night);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-style: italic;
  line-height: 1.5;
}

.professor-quote cite {
  display: block;
  margin-top: 0.875rem;
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-style: normal;
}

.timeline {
  display: grid;
  gap: 0;
  margin: 0 0 0 0.375rem;
  padding: 0 0 0 1.625rem;
  border-inline-start: 1px solid var(--line);
  list-style: none;
}

.timeline > * {
  position: relative;
  padding-block: 0.25rem 2rem;
}

.timeline > *:last-child {
  padding-bottom: 0;
}

.timeline > *::before {
  content: "";
  position: absolute;
  inset: 0.6rem auto auto -2rem;
  width: 0.6875rem;
  height: 0.6875rem;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-label {
  display: block;
  margin-bottom: 0.625rem;
  color: var(--accent-ink);
  font-size: 0.6875rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 0.625rem;
  font-size: 1.375rem;
}

.timeline p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Relatos: trilho compatível com translateX controlado pelo JS. */
.reviews-section {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--paper);
  --ink: var(--paper);
  --muted: var(--text-on-dark);
  --accent-ink: var(--gold);
  --line: var(--line-dark);
}

.reviews-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(
    ellipse at 85% 20%,
    color-mix(in srgb, var(--gold) 9%, transparent),
    transparent 60%
  );
  pointer-events: none;
}

.reviews-section :focus-visible {
  outline-color: var(--gold);
}

.review-slider,
#review-slider {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line-dark);
}

.review-slides,
#review-slides {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  transition: transform 650ms var(--ease);
}

.review-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3.5rem) 0.375rem;
}

.review-slide blockquote {
  max-width: 64rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3.2vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.42;
}

.review-slide blockquote p + p {
  margin-top: 1.25rem;
}

.review-slide cite,
.review-slide figcaption,
.review-slide > footer {
  display: block;
  margin-top: 1.75rem;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-style: normal;
  letter-spacing: 0;
}

.review-slide small {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-on-dark);
}

.slider-controls,
#slider-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.slider-arrows {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

#review-prev,
#review-next {
  display: inline-grid;
  width: 2.875rem;
  height: 2.875rem;
  place-items: center;
  padding: 0.625rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
}

.slider-dots,
#review-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
}

.slider-dots button,
#review-dots button {
  position: relative;
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-size: 0;
}

.slider-dots button::before,
#review-dots button::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  transition: background var(--fast) ease, transform var(--fast) ease;
}

.slider-dots button[aria-current="true"]::before,
.slider-dots button[aria-selected="true"]::before,
#review-dots button[aria-current="true"]::before,
#review-dots button[aria-selected="true"]::before {
  background: var(--gold);
  transform: scale(1.3);
}

#review-position {
  min-width: 3.25rem;
  color: var(--text-on-dark);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Checklist */
.checklist-grid {
  display: grid;
  align-items: start;
  gap: 2rem;
}

.checklist-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-sm);
}

#symptom-form {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

#symptom-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#symptom-form legend {
  margin-bottom: 1rem;
  font-weight: 650;
}

.symptom-option {
  position: relative;
  display: flex;
  min-height: 3.75rem;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--night);
  font-size: 0.9375rem;
  line-height: 1.5;
  cursor: pointer;
  transition:
    border-color var(--fast) ease,
    background var(--fast) ease,
    box-shadow var(--fast) ease;
}

.symptom-option + .symptom-option {
  margin-top: 0.625rem;
}

.symptom-option input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  margin: 0.125rem 0 0;
  accent-color: var(--night);
  cursor: pointer;
}

.symptom-option:has(input:checked) {
  border-color: var(--bronze);
  background: var(--paper-muted);
  box-shadow: inset 3px 0 0 var(--bronze);
}

.symptom-option:has(input:focus-visible) {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}

.symptom-option input:focus-visible {
  outline-offset: 2px;
}

.check-glyph {
  display: inline-grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 0.125rem;
  border: 1px solid var(--line);
  border-radius: 0.25rem;
  color: transparent;
  font-size: 0.8125rem;
  line-height: 1;
  transition: color var(--fast) ease, background var(--fast) ease;
}

.symptom-option:has(input:checked) .check-glyph {
  border-color: var(--night);
  background: var(--night);
  color: var(--paper);
}

.symptom-option:has(.check-glyph) input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.checklist-count,
#checklist-count {
  color: var(--accent-ink);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.checklist-card > .checklist-count {
  display: block;
  margin-block: 1.25rem;
}

#checklist-cta {
  width: 100%;
  margin-top: 1rem;
}

.message-preview,
#message-preview {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.125rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-muted);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

textarea.message-preview {
  min-height: 8rem;
  resize: vertical;
}

.privacy-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.emergency-note {
  margin-top: 1.75rem;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--bronze);
  border-radius: var(--radius-sm);
  background: var(--paper-muted);
  color: var(--graphite);
  font-size: 0.8125rem;
  line-height: 1.65;
}

/* FAQ exclusivamente nativo. */
.faq-grid {
  display: grid;
  align-items: start;
  gap: 2.5rem;
}

.faq-intro {
  max-width: 31rem;
}

.faq-intro > p:not(.eyebrow) {
  margin-top: 1.25rem;
  color: var(--muted);
}

.faq-quote {
  margin-top: 1.75rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 2px solid var(--gold);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  line-height: 1.5;
}

.faq-list {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.faq-list details {
  min-width: 0;
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: block;
  min-height: 4.5rem;
  padding: 1.375rem 3.125rem 1.375rem 0;
  color: var(--night);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

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

.faq-list summary::marker {
  content: "";
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  inset: 2.0625rem 0.75rem auto auto;
  width: 0.875rem;
  height: 1px;
  background: var(--accent-ink);
  transition: transform var(--fast) ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary {
  color: var(--accent-ink);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list summary:focus-visible {
  outline-offset: -3px;
  border-radius: var(--radius-sm);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-inline-end: 1.5rem;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.75;
  transition: opacity 250ms ease;
}

.faq-list details[open] .faq-answer {
  max-height: none;
  overflow: visible;
  opacity: 1;
  padding-bottom: 1.5rem;
}

.faq-answer ul,
.faq-answer ol {
  margin-top: 0.875rem;
}

/* Localização e mapa sob demanda */
.location-grid {
  display: grid;
  align-items: start;
  gap: 2rem;
}

.location-aside {
  min-width: 0;
}

.location-aside > p,
.location-aside address {
  margin-top: 1.25rem;
  color: var(--muted);
}

#office-address {
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

#copy-address {
  min-height: 2.75rem;
}

#copy-status {
  display: block;
  min-height: 1.5em;
  margin-top: 0.625rem;
  color: var(--accent-ink);
  font-size: 0.8125rem;
}

.map-shell {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-muted);
  box-shadow: var(--shadow-sm);
}

#office-map {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 280px;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  background: var(--paper-muted);
}

#office-map iframe,
iframe#office-map {
  width: 100%;
  max-width: 100%;
  height: 280px;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
}

.map-placeholder,
#map-placeholder {
  position: relative;
  isolation: isolate;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  overflow: auto;
  padding: 1.25rem;
  background: var(--paper-muted);
  color: var(--night);
  text-align: center;
}

.map-placeholder > p,
.map-placeholder > small {
  position: relative;
  max-width: 27rem;
  color: var(--graphite);
  font-size: 0.8125rem;
}

.map-illustration {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.35;
  background:
    linear-gradient(
      28deg,
      transparent 42%,
      var(--paper) 42% 47%,
      transparent 47%
    ),
    linear-gradient(
      108deg,
      transparent 30%,
      var(--paper) 30% 35%,
      transparent 35%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 3.75rem,
      var(--line) 3.75rem 3.8125rem
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 4.75rem,
      var(--line) 4.75rem 4.8125rem
    );
  pointer-events: none;
}

#load-map {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.map-credit {
  padding: 0.625rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--graphite);
  font-size: 0.6875rem;
  line-height: 1.5;
}

.map-credit a {
  text-decoration: underline;
}

/* Contato */
.contact-section {
  position: relative;
  background: var(--paper-raised);
  background-image: var(--signature-gradient);
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: 2.5rem;
}

.contact-card {
  min-width: 0;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-card > p {
  margin-top: 1rem;
  color: var(--graphite);
}

.mission-quote {
  max-width: 39rem;
  margin-top: 2rem;
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3vw, 2.625rem);
  font-style: italic;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.contact-form,
#contact-form {
  display: grid;
  min-width: 0;
  gap: 1.125rem;
}

.form-heading {
  margin-bottom: 0.5rem;
}

.form-heading h3 {
  font-size: clamp(1.625rem, 2.5vw, 2rem);
}

.form-heading p {
  margin-top: 0.75rem;
  color: var(--graphite);
  font-size: 0.9375rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4375rem;
  color: var(--night);
  font-size: 0.875rem;
  font-weight: 650;
}

.contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.contact-form select,
.contact-form textarea,
#contact-name,
#contact-subject {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 3.25rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  color: var(--night);
  box-shadow: none;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--fast) ease, background var(--fast) ease;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--graphite);
  opacity: 0.85;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent-ink);
  background: var(--paper);
}

.contact-form [aria-invalid="true"] {
  border-color: var(--accent-ink);
  border-width: 2px;
}

.contact-form input[type="checkbox"],
.contact-form input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  accent-color: var(--night);
}

.select-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
}

.select-wrap select {
  appearance: none;
  padding-inline-end: 3rem;
}

.select-wrap::after {
  content: "";
  position: absolute;
  inset: 1.1875rem 1.125rem auto auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 1.5px solid var(--accent-ink);
  border-bottom: 1.5px solid var(--accent-ink);
  transform: rotate(45deg);
  pointer-events: none;
}

.optional {
  margin-inline-start: 0.25rem;
  color: var(--graphite);
  font-size: 0.75rem;
  font-weight: 400;
}

.form-lgpd {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: var(--graphite);
  font-size: 0.75rem;
  line-height: 1.65;
}

.contact-form .form-lgpd {
  color: var(--graphite);
  font-size: 0.75rem;
  font-weight: 400;
}

.form-lgpd input {
  margin: 0.25rem 0 0;
}

.form-lgpd a {
  font-weight: 650;
}

.contact-form .button[type="submit"] {
  width: 100%;
}

/* Rodapé */
.site-footer {
  padding-block: clamp(3rem, 5vw, 5rem) 1.5rem;
  background: var(--night);
  color: var(--paper);
  --accent-ink: var(--gold);
  --muted: var(--text-on-dark);
  --line: var(--line-dark);
}

.footer-main {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
}

.footer-brand > img {
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: var(--logo-bg);
  object-fit: contain;
}

.footer-name {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 450;
  line-height: 1.25;
}

.footer-brand p,
.footer-brand small {
  color: var(--text-on-dark);
  font-size: 0.8125rem;
}

.footer-contact {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  color: var(--text-on-dark);
  font-size: 0.875rem;
}

.footer-contact a {
  width: fit-content;
  min-height: 2.75rem;
  align-content: center;
  color: var(--paper);
}

.footer-contact address {
  max-width: 28rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  color: var(--text-on-dark);
  font-size: 0.75rem;
}

.footer-bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
}

.footer-bottom a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}

#year {
  font-variant-numeric: tabular-nums;
}

/* Conteúdo legal no mesmo documento */
.legal-area {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--night);
}

.legal-content {
  max-width: 52rem;
  margin-inline: auto;
  color: var(--graphite);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.legal-content h2,
.legal-content h3,
.legal-content h4 {
  margin-block: 1.75rem 0.875rem;
  color: var(--night);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content ul,
.legal-content ol {
  margin-block: 1rem;
}

.legal-content li + li {
  margin-top: 0.5rem;
}

.legal-content a {
  color: var(--accent-ink);
}

/* Ações flutuantes e consentimento não modal */
.floating-actions,
#floating-actions {
  position: fixed;
  z-index: 45;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom) + var(--consent-offset));
  display: flex;
  max-width: calc(100% - 2rem);
  flex-direction: column;
  align-items: flex-end;
  gap: 0.625rem;
  pointer-events: none;
}

.floating-actions > * {
  pointer-events: auto;
}

.floating-wa {
  display: inline-flex;
  min-width: 3.25rem;
  min-height: 3.25rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: var(--night);
  color: var(--paper);
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: transform var(--fast) var(--ease), background var(--fast) ease;
}

.floating-wa svg {
  color: var(--gold);
}

.floating-wa:focus-visible {
  outline-color: var(--bronze);
}

.back-top,
#back-top {
  display: inline-grid;
  width: 2.875rem;
  height: 2.875rem;
  place-items: center;
  padding: 0.625rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--night);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.privacy-banner,
#privacy-banner {
  position: fixed;
  z-index: 60;
  inset: auto 0 0;
  width: 100%;
  max-height: min(15rem, 45svh);
  overflow-y: auto;
  padding:
    1rem
    max(var(--gutter), env(safe-area-inset-right))
    calc(1rem + env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--night);
  box-shadow: 0 -0.5rem 2rem color-mix(in srgb, var(--night) 9%, transparent);
}

.privacy-banner[aria-hidden="true"] {
  display: none;
}

.privacy-banner > .container {
  width: 100%;
}

.privacy-banner p {
  max-width: 58rem;
  color: var(--graphite);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.privacy-banner p a {
  color: var(--accent-ink);
  font-weight: 650;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.875rem;
}

#privacy-accept,
#privacy-reject,
#privacy-settings {
  min-height: 2.75rem;
  max-width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.35;
}

#privacy-accept {
  border: 1px solid var(--night);
  background: var(--night);
  color: var(--paper);
  font-weight: 700;
}

#privacy-reject {
  border: 1px solid var(--accent-ink);
  background: transparent;
  color: var(--accent-ink);
  font-weight: 650;
}

#privacy-settings {
  border: 1px solid transparent;
  background: transparent;
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* Interações sem movimento automático ou dependência de hover. */
@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
  }

  .button-dark:hover {
    background: var(--night-raised);
  }

  .button-gold:hover {
    border-color: var(--paper);
    background: color-mix(in srgb, var(--gold) 82%, var(--paper));
  }

  .button-outline:hover {
    background: color-mix(in srgb, var(--gold) 12%, transparent);
  }

  .desktop-nav a:hover,
  .text-link:hover,
  .text-button:hover {
    color: var(--accent-ink);
    text-decoration: underline;
  }

  .icon-button:not(:disabled):hover,
  #review-prev:not(:disabled):hover,
  #review-next:not(:disabled):hover {
    border-color: var(--gold);
    background: color-mix(in srgb, var(--gold) 12%, transparent);
  }

  .book-card:hover .book {
    transform: translateY(-0.5rem) rotateY(-12deg);
  }

  .book-card:hover .front-cover {
    transform: rotateY(-12deg);
  }

  .shelf-stage[data-mode="detail"] .book-card[aria-expanded="true"]:hover .book {
    transform: rotateY(0deg);
  }

  .shelf-stage[data-mode="detail"] .book-card[aria-expanded="true"]:hover .front-cover {
    transform: rotateY(-29deg);
  }

  .symptom-option:hover {
    border-color: var(--bronze);
  }

  .faq-list summary:hover {
    color: var(--accent-ink);
  }

  .floating-wa:hover {
    transform: translateY(-2px);
    background: var(--night-raised);
  }

  #book-close:hover,
  .back-top:hover {
    border-color: var(--bronze);
    background: var(--paper-muted);
  }
}

/* Tablet */
@media (min-width: 600px) {
  .header-cta {
    display: inline-flex;
    margin-inline-start: auto;
  }

  .hero-art {
    min-height: 28rem;
  }

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

  .shelf-stage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }

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

  .listening-pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
  }

  #office-map,
  #office-map iframe,
  iframe#office-map {
    height: 340px;
  }
}

/* Desktop: ritmo editorial, estante de seis volumes. */
@media (min-width: 900px) {
  body:has(#privacy-banner:not([hidden]):not([aria-hidden="true"])) {
    --consent-offset: 10rem;
  }

  .header-inner {
    min-height: 6.25rem;
    gap: 1.25rem;
  }

  .desktop-nav {
    display: flex;
    margin-inline-start: auto;
  }

  .header-cta {
    margin-inline-start: 0;
  }

  .menu-toggle,
  #menu-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .hero-art {
    min-height: clamp(31rem, 43vw, 39rem);
    align-content: center;
    gap: 2.5rem;
  }

  .logo-mat {
    width: min(100%, 21rem);
  }

  .split-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 4rem;
  }

  .credential-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 2.5rem;
  }

  .shelf-stage {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.875rem, 1.8vw, 1.625rem);
    padding-block: 2rem 2.75rem;
  }

  .shelf-stage[data-mode="detail"] {
    grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.65fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
    padding-inline: clamp(0rem, 2vw, 2rem);
  }

  .shelf-stage[data-mode="detail"] .book-card[aria-expanded="true"] {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: min(100%, 12.5rem);
    max-width: 12.5rem;
    margin-top: 1.75rem;
  }

  .shelf-stage[data-mode="detail"] .book-panel,
  .shelf-stage[data-mode="detail"] #book-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .listening-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .listening-pillars {
    gap: 3rem;
  }

  .professor-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .checklist-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
  }

  .faq-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .location-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  #office-map,
  #office-map iframe,
  iframe#office-map {
    height: 390px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 7rem);
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .floating-actions,
  #floating-actions {
    right: max(1.5rem, env(safe-area-inset-right));
    bottom: calc(1.5rem + env(safe-area-inset-bottom) + var(--consent-offset));
  }

  .privacy-banner,
  #privacy-banner {
    max-height: 10rem;
    padding-block: 1rem calc(1rem + env(safe-area-inset-bottom));
  }

  .privacy-banner > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    max-width: var(--container);
  }

  .privacy-banner > .container > p {
    flex: 1 1 32rem;
  }

  .privacy-actions {
    flex: 0 1 auto;
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .header-inner {
    gap: 2rem;
  }

  .brand {
    gap: 0.875rem;
  }

  .desktop-nav {
    gap: 1.75rem;
  }

  .hero-copy {
    padding-block: 1rem;
  }

  .cover-title {
    font-size: 1.625rem;
  }

  .review-slide {
    padding-inline: 1rem;
  }
}

/* Ajustes para telas estreitas, inclusive 390px. */
@media (max-width: 599px) {
  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-art {
    max-width: 27rem;
    width: 100%;
    margin-inline: auto;
  }

  .cover-subtitle {
    margin-top: 0.5rem;
  }

  .slider-controls,
  #slider-controls {
    gap: 0.625rem;
  }

  .slider-dots,
  #review-dots {
    order: 3;
    width: 100%;
  }

  .location-actions .button {
    width: 100%;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 3.5rem;
  }

  .privacy-actions {
    gap: 0.5rem;
  }
}

@media (max-width: 359px) {
  .brand {
    gap: 0.5rem;
  }

  .brand strong {
    font-size: 0.9375rem;
  }

  .brand-symbol,
  .brand > img {
    width: 2.75rem;
    height: 2.75rem;
  }

  .front-cover {
    padding: 0.6875rem;
  }

  .cover-title {
    font-size: 1rem;
  }

  .cover-kicker,
  .cover-bottom {
    letter-spacing: 0;
  }

  .cover-mark {
    width: 2rem;
  }

  .floating-wa {
    padding-inline: 0.875rem;
    font-size: 0.75rem;
  }
}

/* Preferências de acessibilidade */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .hero-art > canvas {
    display: none;
  }

  .book-card:hover .book {
    transform: rotateY(-8deg);
  }
}

@media (forced-colors: active) {
  .button,
  .icon-button,
  .book-card,
  .front-cover,
  .symptom-option,
  .contact-card,
  .book-panel,
  .privacy-banner,
  .floating-wa {
    border: 1px solid ButtonText;
  }

  .book-shadow,
  .hero-art::before,
  .hero-art::after,
  .map-illustration {
    display: none;
  }

  .check-glyph,
  .cover-mark {
    border-color: ButtonText;
  }

  .symptom-option:has(input:checked) {
    outline: 2px solid Highlight;
  }

  .symptom-option:has(input:checked) .check-glyph {
    background: Highlight;
    color: HighlightText;
  }

  .slider-dots button::before,
  #review-dots button::before {
    border-color: ButtonText;
  }

  .slider-dots button[aria-current="true"]::before,
  .slider-dots button[aria-selected="true"]::before,
  #review-dots button[aria-current="true"]::before,
  #review-dots button[aria-selected="true"]::before {
    background: Highlight;
    forced-color-adjust: none;
  }

  :focus-visible {
    outline-color: Highlight;
  }
}