:root {
  --color-ink: #3A2E2B;
  --color-text: #6E6562;
  --color-muted: #8A817E;
  --color-paper: #FAF8F5;
  --color-cream: #FAF8F5;
  --color-warm: #FAF8F5;
  --color-nude: #F4EFEB;
  --color-rose: #B87A84;
  --color-rose-soft: #F4E9E6;
  --color-burnt: #B87A84;
  --color-mint: #DDE9E1;
  --color-blue: #FAF8F5;
  --color-blue-soft: #FAF8F5;
  --color-blue-button: #B87A84;
  --color-gold: #F4EFEB;
  --color-white: #ffffff;
  --color-line: rgba(58, 46, 43, 0.1);
  --color-accent-pink: #cca0a4;
  --color-gallery-bg: #fcf5f2;
  --color-playground-bg: #f2faf7;

  --font-heading: "Nunito", Arial, sans-serif;
  --font-body: "Nunito", Arial, sans-serif;
  --font-open: "Open Sans", Arial, sans-serif;
  --font-label: "Montserrat", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(92px, 7.6vw, 128px);
  --header-height: 68px;
  --radius-card: 24px;
  --radius-panel: 48px;
  --radius-image: 40px;
  --shadow-soft: 0 24px 56px rgba(58, 46, 43, 0.055);
  --shadow-card: 0 18px 42px rgba(58, 46, 43, 0.045);
  --shadow-focus: 0 0 0 4px rgba(184, 122, 132, 0.18);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.page-wrap,
.browser-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--color-paper);
  overflow: hidden;
}

.browser-topbar {
  display: none;
}

.site-header {
  height: var(--header-height);
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(58, 46, 43, 0.08);
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(14px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.site-brand {
  display: grid;
  gap: 2px;
  min-width: 158px;
  color: var(--color-ink);
  font-family: var(--font-label);
  line-height: 1.1;
  text-transform: uppercase;
}

.site-brand span {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.site-brand small {
  color: var(--color-burnt);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.35vw, 34px);
  color: rgba(58, 46, 43, 0.66);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  transition: color 180ms var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-rose);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.45);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

.site-nav a:hover {
  color: var(--color-ink);
}

.site-nav a:hover::after {
  opacity: 0.55;
  transform: translateX(-50%) scaleX(1);
}

.calm-toggle {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(184, 122, 132, 0.22);
  border-radius: 999px;
  padding: 0 22px 0 18px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--color-burnt);
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(58, 46, 43, 0.05);
  transition: transform 180ms var(--ease), background 180ms var(--ease), box-shadow 180ms var(--ease);
}

.calm-toggle:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 28px rgba(58, 46, 43, 0.065);
}

.calm-icon {
  font-size: 18px;
  line-height: 1;
}

.container,
.hero-inner,
.services-inner {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.text-center {
  text-align: center;
}

.section-title,
.diagnosis-title,
.help-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

.section-title {
  font-size: clamp(34px, 4vw, 52px);
}

.section-description,
.diagnosis-text,
.help-subtitle {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--color-text);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.72;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 31px;
  cursor: pointer;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-blue-button);
  border-color: #B87A84;
  color: var(--color-white);
  box-shadow: 0 16px 30px rgba(184, 122, 132, 0.18);
}

.btn-primary:hover {
  background: #A96F78;
  border-color: #A96F78;
}

.btn-outline {
  background: transparent;
  border-color: #B87A84;
  color: var(--color-burnt);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(184, 122, 132, 0.22);
  color: var(--color-rose);
  box-shadow: 0 8px 18px rgba(58, 46, 43, 0.045);
}

.btn-icon svg {
  width: 17px;
  height: 17px;
}

/* Hero */
.hero-section {
  min-height: calc(100vh - var(--header-height));
  min-height: clamp(640px, calc(100svh - var(--header-height)), 780px);
  padding: clamp(54px, 7vh, 84px) 0 clamp(72px, 8vh, 104px);
  position: relative;
  display: grid;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--color-cream);
}

.hero-blob-left {
  display: none;
}

.hero-blob-right {
  display: none;
}

.hero-section::before {
  content: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(172px, 16vh, 216px);
  background: var(--color-blue-soft);
  clip-path: polygon(0 9%, 50% 0, 100% 8%, 100% 100%, 0 100%);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(340px, 420px);
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  gap: clamp(72px, 8vw, 124px);
  align-items: center;
}

.hero-copy {
  max-width: 630px;
  padding: 0;
}

.professional-line {
  margin: 0 0 18px;
  color: #8A817E;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  color: #3A2E2B;
  font-family: var(--font-label);
  font-size: clamp(42px, 3vw, 56px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.16;
}

.hero-description {
  max-width: 500px;
  margin: 26px 0 0;
  color: #6E6562;
  font-size: 17px;
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-actions .btn-outline {
  width: 160px;
  padding-inline: 0;
}

.hero-actions .btn-primary {
  width: 184px;
  padding-inline: 0;
}

.doctor-card {
  width: min(406px, 100%);
  height: 456px;
  margin: 0;
  justify-self: end;
  position: relative;
  padding: 20px;
  border-radius: 38px 38px 38px 26px;
  background: #F3D8D4;
  border: 1px solid rgba(184, 122, 132, 0.42);
  box-shadow: 0 24px 64px rgba(58, 46, 43, 0.075);
  z-index: 2;
}

.doctor-card::before {
  content: "";
  position: absolute;
  right: -18px;
  top: -56px;
  width: 166px;
  height: 166px;
  border-radius: 50%;
  background: #C9E5D7;
  z-index: 1;
}

.doctor-card::after {
  content: "";
  position: absolute;
  left: -44px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  border-radius: 24px;
  background: #FFFFFF;
  z-index: 2;
}

.doctor-dotted-ring {
  position: absolute;
  left: -86px;
  top: -62px;
  width: 214px;
  height: 214px;
  border: 2px dotted rgba(184, 122, 132, 0.46);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 3;
  border: 8px solid #FFFFFF;
  border-radius: 28px 28px 28px 18px;
  object-fit: cover;
  object-position: 50% 43%;
  box-shadow: none;
}

.doctor-butterfly {
  position: absolute;
  top: -62px;
  right: 28px;
  width: 76px;
  height: auto;
  z-index: 4;
  opacity: 0.95;
  filter: drop-shadow(0 8px 16px rgba(82, 42, 63, 0.2));
  transform: rotate(8deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.doctor-card:hover .doctor-butterfly {
  transform: rotate(18deg) scale(1.08);
}

/* Services */
.services-section {
  position: relative;
  z-index: 2;
  padding: clamp(72px, 5vw, 92px) 0 clamp(104px, 7.2vw, 128px);
  background: var(--color-warm);
}

.services-section::before {
  content: none;
}

.services-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: clamp(28px, 1.65vw, 32px);
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.services-subtitle {
  max-width: 590px;
  margin: 20px auto 0;
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 34px);
  margin-top: clamp(60px, 5vw, 76px);
}

.service-card {
  min-height: 288px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 28px 34px;
  border: 1px solid rgba(58, 46, 43, 0.08);
  border-radius: 24px;
  background: #FFFFFF;
  box-shadow: 0 18px 42px rgba(58, 46, 43, 0.045);
  text-align: center;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

/* Hover padronizado e idêntico p/ todos os cards (elevação, escala, sombra, borda) */
.service-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(184, 122, 132, 0.28);
  box-shadow: 0 26px 48px rgba(58, 46, 43, 0.10);
}
.service-card:hover .service-icon {
  transform: translateY(-4px) scale(1.06);
  box-shadow: none;
}

/* Ícone sem fundo (estilo transparente e direto) */
.service-icon {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff, #f6efe9);
  border: 1px solid rgba(184, 122, 132, 0.14);
  box-shadow: 0 10px 22px rgba(58, 46, 43, 0.05);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}

.service-icon img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  opacity: 1;
}

.service-card h3 {
  min-height: 42px;
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.24;
  text-transform: uppercase;
}

.service-card p {
  margin: 18px 0 0;
  color: var(--color-text);
  font-family: var(--font-open);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
}

.lower-blue-band {
  display: none;
}

.lower-blue-band::after {
  content: none;
  position: absolute;
  left: 50%;
  bottom: -38px;
  width: min(840px, 80vw);
  height: 78px;
  border-radius: 50%;
  background: var(--color-blue-soft);
  transform: translateX(-50%);
}

/* Shared section system */
.identity-divider-line {
  display: none;
  height: 66px;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.divider-icon-wrapper {
  width: 72px;
  height: 44px;
  display: grid;
  place-items: center;
}

.identity-divider-svg,
.footer-tree-svg {
  color: var(--color-rose);
  opacity: 0.86;
}

.diagnosis-section,
.tour-section,
.timeline-section,
.gallery-section,
.playground-section,
.help-section,
.main-footer {
  position: relative;
  overflow: hidden;
}

.diagnosis-section,
.tour-section,
.timeline-section,
.gallery-section,
.playground-section,
.help-section {
  padding: var(--section-y) 0;
}

.diagnosis-section {
  background: var(--color-warm);
}

.tour-section {
  background: var(--color-blue-soft);
}

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

.gallery-section {
  /* tom rosa só no miolo; topo e base voltam ao creme = emendas suaves (nivelado) */
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-gallery-bg) 22%, var(--color-gallery-bg) 78%, var(--color-paper) 100%);
}

.playground-section {
  /* menta só no miolo; topo e base voltam ao creme = emendas suaves (nivelado) */
  background: linear-gradient(180deg, var(--color-paper) 0%, var(--color-playground-bg) 22%, var(--color-playground-bg) 78%, var(--color-paper) 100%);
}

.help-section {
  background: var(--color-white);
}

.section-bg-shapes {
  /* REMOVIDO a pedido: os arcos/blobs/círculos rosa-avermelhados (.shape-arc etc.)
     poluíam as seções. As seções ficam limpas, só com o leve degradê de cor. */
  display: none !important;
}

.shape {
  position: absolute;
  opacity: 0.15;
}

.shape-blob {
  border-radius: 47% 53% 61% 39% / 40% 42% 58% 60%;
}

.shape-circle {
  border-radius: 50%;
}

.shape-arc {
  border: 22px solid currentColor;
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  background: transparent;
}

.shape-lavender {
  background: #F3838F;
  color: #F3838F;
}

.shape-mint {
  background: #F3838F;
  color: #F3838F;
}

.shape-rose {
  background: #F3838F;
  color: #F3838F;
}

.shape-blue {
  background: #F3838F;
  color: #F3838F;
}

.shape-gold {
  background: #F3838F;
  color: #F3838F;
}

.diagnosis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(44px, 7vw, 84px);
  align-items: center;
}

.diagnosis-art-wrapper {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(156, 100, 113, 0.22);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: var(--shadow-soft);
}

.diagnosis-art-wrapper::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -28px;
  width: 116px;
  height: 116px;
  border-radius: 0 72px 0 72px;
  background: rgba(243, 131, 143, 0.16);
  z-index: -1;
}

.diagnosis-art-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 32px;
  object-fit: cover;
  background: var(--color-paper);
}

.diagnosis-badge {
  position: absolute;
  left: 32px;
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(156, 100, 113, 0.24);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-rose);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(177, 16, 23, 0.08);
}

.diagnosis-decor-butterfly {
  position: absolute;
  top: 28px;
  right: 30px;
  color: var(--color-rose);
  opacity: 0.78;
}

.diagnosis-title,
.help-title {
  font-size: clamp(36px, 4.4vw, 58px);
}

.diagnosis-content-col {
  max-width: 580px;
}

.diagnosis-content-col .btn {
  margin-top: 30px;
}

/* Tour */
.tour-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
  margin-top: 52px;
}

.tour-viewer-wrapper {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(156, 100, 113, 0.18);
  border-radius: var(--radius-panel);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.tour-main-img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.tour-hotspot {
  width: 34px;
  height: 34px;
  position: absolute;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-rose);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(177, 16, 23, 0.18);
  transform: translate(-50%, -50%);
}

.hotspot-icon {
  position: relative;
  z-index: 2;
  font-family: var(--font-label);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.hotspot-pulse {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(243, 131, 143, 0.45);
  border-radius: inherit;
  animation: pulse 2.2s infinite;
}

.tour-hotspot.active {
  background: var(--color-blue-button);
}

.tour-details-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 34px;
  border: 1px solid rgba(156, 100, 113, 0.2);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-card);
}

.tour-details-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.16;
}

.tour-details-desc {
  margin: 14px 0 0;
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.65;
}

/* Timeline */
.timeline-container {
  margin-top: 56px;
  position: relative;
}

/* Cinematic Apple-style giant year background container and layer */
.timeline-bg-year-container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(920px, 100%);
  pointer-events: none;
  z-index: 0; /* Behind both dots line (z-index: 3) and content card (z-index: 2) */
  overflow: visible;
}

.timeline-bg-year-layer {
  position: absolute;
  top: 55%; /* Centered vertically relative to the entire timeline card area */
  left: 10%; /* Starts at 10% (first dot), updated dynamically by JS to 30%, 50%, 70%, 90% */
  transform: translate(-50%, -50%) scale(1);
  font-family: var(--font-heading);
  font-size: clamp(180px, 32vw, 380px); /* Truly giant typographic watermark */
  font-weight: 800;
  line-height: 0.8;
  color: var(--color-ink);
  opacity: 0.05;
  pointer-events: none;
  letter-spacing: -0.05em;
  text-align: center;
  /* Default and enter transition: smooth and slow */
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              left 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
              filter 0.8s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  filter: blur(0);
  user-select: none;
  will-change: left, opacity, filter, transform;
}

body.calm-mode .timeline-bg-year-layer {
  opacity: 0.07;
}

/* Exit cinematic animation: fast fade, scale down and blur out */
.timeline-bg-year-layer.exit {
  opacity: 0;
  filter: blur(12px);
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              filter 0.25s cubic-bezier(0.25, 1, 0.5, 1), 
              transform 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              left 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Keep horizontal slide slow */
}

/* Enter cinematic animation: initial state before transition back to active */
.timeline-bg-year-layer.enter {
  opacity: 0;
  filter: blur(12px);
  transform: translate(-50%, -50%) scale(1.15);
}

.timeline-nav-wrapper {
  position: relative;
  margin: 0 auto 42px;
  padding: 8px 0 10px;
  z-index: 3; /* Sit above background year layer */
  max-width: min(920px, 100%); /* Align navigation wrapper width with card */
}

.timeline-line-bg {
  position: absolute;
  top: 17px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(156, 100, 113, 0.22);
  z-index: 1;
}

.timeline-line-progress {
  position: absolute;
  top: 17px;
  left: 10%;
  height: 2px;
  background: var(--color-rose);
  width: 0%;
  transition: width 0.4s var(--ease);
  z-index: 2;
  box-shadow: 0 0 8px rgba(184, 122, 132, 0.35);
}

body.calm-mode .timeline-line-progress {
  background: var(--color-rose);
  box-shadow: 0 0 10px rgba(230, 194, 199, 0.5);
}

.timeline-nav-dots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 3; /* Sit above background year layer and progress lines */
}

.timeline-nav-dot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--color-muted);
  text-align: center;
}

/* Refined minimal dots instead of standard stepper button */
.timeline-nav-dot::before {
  content: "";
  width: 16px;
  height: 16px;
  display: block;
  border: 2px solid rgba(156, 100, 113, 0.35);
  border-radius: 50%;
  background: var(--color-paper);
  box-shadow: 0 4px 10px rgba(58, 46, 43, 0.04);
  transition: all 0.3s var(--ease);
}

.timeline-nav-dot:hover::before {
  border-color: var(--color-rose);
  transform: scale(1.2);
  background: var(--color-white);
}

.timeline-nav-dot.active::before {
  width: 16px;
  height: 16px;
  background: var(--color-rose);
  border-color: var(--color-rose);
  box-shadow: 0 0 0 6px rgba(184, 122, 132, 0.18), 0 8px 16px rgba(184, 122, 132, 0.25);
  transform: scale(1.1);
}

body.calm-mode .timeline-nav-dot.active::before {
  background: var(--color-rose);
  border-color: var(--color-rose);
  box-shadow: 0 0 0 6px rgba(230, 194, 199, 0.2), 0 8px 16px rgba(230, 194, 199, 0.3);
}

.dot-num,
.dot-label {
  display: block;
}

.dot-num {
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  transition: color 250ms var(--ease), transform 250ms var(--ease);
  margin-top: 4px;
}

.timeline-nav-dot.active .dot-num {
  color: var(--color-rose);
  font-weight: 800;
  transform: scale(1.05);
}

.dot-label {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.timeline-content-card {
  width: min(920px, 100%);
  min-height: 280px;
  margin: 0 auto;
  padding: clamp(34px, 5vw, 48px);
  border: 1px solid rgba(156, 100, 113, 0.15);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.65); /* More translucent for rich backdrop blur */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  z-index: 2; /* Sits in front of background year layer */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

body.calm-mode .timeline-content-card {
  background: rgba(46, 40, 48, 0.65);
  border-color: rgba(255, 255, 255, 0.08);
}

.timeline-card-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    circle 300px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(184, 122, 132, 0.08) 0%,
    rgba(184, 122, 132, 0.03) 40%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.timeline-content-card:hover .timeline-card-glow {
  opacity: 1;
}

.timeline-content-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    circle 300px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(184, 122, 132, 0.45),
    transparent 60%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.timeline-content-card:hover::after {
  opacity: 1;
}

body.calm-mode .timeline-card-glow {
  background: radial-gradient(
    circle 300px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(230, 194, 199, 0.12) 0%,
    rgba(230, 194, 199, 0.04) 50%,
    transparent 85%
  );
}

body.calm-mode .timeline-content-card::after {
  background: radial-gradient(
    circle 300px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(230, 194, 199, 0.5),
    transparent 60%
  );
}

.timeline-panel-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  position: relative;
  z-index: 3;
}

.timeline-panel-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-right: 1px solid rgba(156, 100, 113, 0.15);
  padding-right: 24px;
  position: relative;
  min-height: 180px;
}

body.calm-mode .timeline-panel-aside {
  border-right-color: rgba(255, 255, 255, 0.1);
}

.timeline-panel-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Emblem Wrapper in Foreground */
.timeline-emblem-wrapper {
  position: relative;
  z-index: 2;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(58, 46, 43, 0.06);
  color: var(--color-rose);
  margin-bottom: 16px;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.5s var(--ease) 100ms, opacity 0.5s var(--ease) 100ms;
}

.timeline-panel.active .timeline-emblem-wrapper {
  transform: scale(1);
  opacity: 1;
  animation: float 6s ease-in-out infinite;
}

body.calm-mode .timeline-emblem-wrapper {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.timeline-emblem {
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-emblem svg {
  filter: drop-shadow(0 4px 10px rgba(184, 122, 132, 0.15));
}

body.calm-mode .timeline-emblem svg {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.timeline-duration-badge {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: rgba(184, 122, 132, 0.08);
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid rgba(184, 122, 132, 0.15);
  transform: translateY(6px);
  opacity: 0;
  transition: transform 0.4s var(--ease) 200ms, opacity 0.4s var(--ease) 200ms;
  position: relative;
  z-index: 3;
}

.timeline-panel.active .timeline-duration-badge {
  transform: translateY(0);
  opacity: 1;
}

body.calm-mode .timeline-duration-badge {
  background: rgba(230, 194, 199, 0.1);
  border-color: rgba(230, 194, 199, 0.2);
  color: #e4dade !important;
}

.timeline-panel[hidden] {
  display: none;
}

.timeline-panel {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
}

.timeline-panel.active {
  opacity: 1;
  transform: translateY(0);
}

.panel-step-indicator {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-rose);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.panel-step-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.14;
}

.panel-step-text {
  margin: 14px 0 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.72;
}

/* Apple-style floating dock for time control */
.timeline-dock-container {
  display: flex;
  justify-content: center;
  margin-top: 36px;
  z-index: 3; /* Sit above background year layer */
  position: relative;
}

.timeline-dock {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(184, 122, 132, 0.2);
  box-shadow: 0 16px 36px rgba(58, 46, 43, 0.06);
  transition: all 0.3s var(--ease);
}

body.calm-mode .timeline-dock {
  background: rgba(46, 40, 48, 0.75);
  border-color: rgba(230, 194, 199, 0.15);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.dock-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--color-rose);
  color: var(--color-white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
  padding: 0;
}

.dock-play-btn:hover {
  transform: scale(1.08);
  background: #A96F78;
}

.dock-play-btn:active {
  transform: scale(0.95);
}

.dock-play-btn .play-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
  margin-left: 2px;
}

.dock-play-btn.is-playing .play-icon {
  margin-left: 0;
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: rgba(156, 100, 113, 0.15);
}

.dock-step-info {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 3px;
}

.dock-step-slash {
  color: var(--color-muted);
}

.dock-progress-track {
  width: 140px;
  height: 4px;
  background: rgba(156, 100, 113, 0.12);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

body.calm-mode .dock-progress-track {
  background: rgba(255, 255, 255, 0.08);
}

.dock-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--color-rose);
  border-radius: 99px;
  transition: width 0.05s linear;
}

/* Responsive styles for timeline */
@media (max-width: 768px) {
  .timeline-bg-year-layer {
    font-size: clamp(100px, 22vw, 180px);
    top: 50%;
  }

  .timeline-nav-dots {
    gap: 6px;
  }
  
  .timeline-nav-dot::before {
    width: 14px;
    height: 14px;
  }
  
  .timeline-nav-dot.active::before {
    width: 14px;
    height: 14px;
    box-shadow: 0 0 0 4px rgba(184, 122, 132, 0.18), 0 6px 12px rgba(184, 122, 132, 0.2);
  }
  
  body.calm-mode .timeline-nav-dot.active::before {
    box-shadow: 0 0 0 4px rgba(230, 194, 199, 0.2), 0 6px 12px rgba(230, 194, 199, 0.25);
  }
  
  .timeline-line-bg, .timeline-line-progress {
    top: 16px;
  }
  
  .dot-num {
    font-size: 10px;
  }
  
  .dot-label {
    display: none;
  }

  .timeline-panel-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-panel-aside {
    border-right: 0;
    border-bottom: 1px solid rgba(156, 100, 113, 0.15);
    padding-right: 0;
    padding-bottom: 24px;
    align-items: center;
    text-align: center;
    min-height: 160px;
  }

  .timeline-emblem-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
  }
}

/* Gallery */
.gallery-grid-wrapper {
  margin-top: 52px;
}

.gallery-interactive-viewer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 174px;
  gap: 18px;
}

.gallery-main-view {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(156, 100, 113, 0.2);
  border-radius: var(--radius-panel);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.gallery-main-img {
  width: 100%;
  height: clamp(360px, 46vw, 560px);
  object-fit: cover;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}

.gallery-main-img.fade-out {
  opacity: 0.2;
  transform: scale(1.01);
}

.gallery-image-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: min(560px, calc(100% - 40px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  box-shadow: 0 10px 22px rgba(177, 16, 23, 0.08);
}

.gallery-image-caption strong {
  color: var(--color-ink);
}

.gallery-thumbnails-group {
  display: grid;
  gap: 14px;
}

.gallery-thumb-btn {
  display: block;
  min-height: 0;
  padding: 6px;
  border: 1px solid rgba(156, 100, 113, 0.2);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  box-shadow: 0 7px 16px rgba(177, 16, 23, 0.05);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.gallery-thumb-btn:hover,
.gallery-thumb-btn.active {
  transform: translateY(-2px);
  border-color: rgba(156, 100, 113, 0.48);
  background: var(--color-white);
}

.thumb-img {
  width: 100%;
  height: 142px;
  border-radius: 22px;
  object-fit: cover;
}

/* Playground */
.playground-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 34px 0 26px;
}

.playground-canvas-wrapper {
  height: clamp(360px, 42vw, 500px);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(156, 100, 113, 0.2);
  border-radius: var(--radius-panel);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  isolation: isolate;
}

.playground-canvas-wrapper canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0;
  pointer-events: none;
}

.physics-chip {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(58, 46, 43, 0.1);
  border-radius: 50%;
  touch-action: none;
  user-select: none;
  will-change: transform;
  z-index: 2;
  overflow: hidden;
}

.physics-chip img.chip-face-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.physics-chip.chip-alegria { background: #fef9d9; }
.physics-chip.chip-tristeza { background: #d4e6f1; }
.physics-chip.chip-raiva { background: #fadbd8; }
.physics-chip.chip-medo { background: #ebdef0; }
.physics-chip.chip-nojinho { background: #d5f5e3; }
.physics-chip.chip-ansiedade { background: #f5cba7; }
.physics-chip.chip-tedio { background: #d5dbdb; }
.physics-chip.chip-vergonha { background: #f9ebed; }

.shake-anim {
  animation: shake 520ms var(--ease);
}

/* Contact */
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.help-form-col {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid rgba(156, 100, 113, 0.22);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.help-subtitle {
  margin-left: 0;
}

.help-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-label {
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 1px solid rgba(156, 100, 113, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-ink);
  padding: 14px 15px;
  outline: none;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(156, 100, 113, 0.56);
}

.form-input:focus,
.form-textarea:focus {
  border-color: rgba(243, 131, 143, 0.7);
  background: var(--color-white);
  box-shadow: var(--shadow-focus);
}

.form-textarea {
  resize: vertical;
  min-height: 132px;
}

.btn-submit {
  width: fit-content;
  min-width: 148px;
}

.help-actions-col {
  display: grid;
  gap: 20px;
}

.office-image-wrapper {
  overflow: hidden;
  border: 1px solid rgba(156, 100, 113, 0.22);
  border-radius: var(--radius-panel);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.office-img {
  width: 100%;
  height: clamp(270px, 34vw, 390px);
  object-fit: cover;
}

.action-buttons-group {
  display: grid;
  gap: 12px;
}

.action-btn-large {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  border: 1px solid rgba(156, 100, 113, 0.22);
  border-radius: 30px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text);
  text-align: left;
  box-shadow: 0 8px 18px rgba(177, 16, 23, 0.05);
  cursor: pointer;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}

.action-btn-large:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 100, 113, 0.42);
  background: var(--color-white);
}

.action-btn-title,
.action-btn-desc {
  display: block;
}

.action-btn-title {
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.action-btn-desc {
  margin-top: 2px;
  color: var(--color-muted);
  font-size: 15px;
}

.action-btn-arrow {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-blue-soft);
  color: var(--color-blue-button);
}

/* Footer */
.main-footer {
  padding: 48px 0;
  background: #F4EFEB;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.footer-left,
.footer-right {
  display: grid;
  gap: 4px;
}

.footer-right {
  justify-items: end;
  text-align: right;
}

.footer-logo {
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
}

.footer-credo,
.footer-address,
.footer-copyright {
  margin: 0;
  color: rgba(156, 100, 113, 0.78);
  font-size: 14px;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--color-rose);
  font-size: 14px;
  font-weight: 700;
  transition: color 180ms var(--ease);
  width: fit-content;
}

.footer-instagram:hover {
  color: var(--color-blue-button);
}

/* Modal and floating action */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 46, 43, 0.28);
}

.modal-content {
  width: min(640px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: var(--radius-panel);
  background: var(--color-white);
  box-shadow: 0 22px 70px rgba(58, 46, 43, 0.16);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 100, 113, 0.2);
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-ink);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.modal-title {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.12;
}

.modal-body {
  margin-top: 18px;
  color: var(--color-text);
  font-size: 17px;
}

.modal-list {
  margin: 18px 0 0;
  padding-left: 20px;
}

.modal-list li + li {
  margin-top: 12px;
}

.faq-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(156, 100, 113, 0.18);
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 800;
}

.faq-answer {
  margin: 8px 0 0;
}

.whatsapp-float-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  box-shadow: 0 14px 28px rgba(37, 211, 102, 0.28);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.whatsapp-float-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.34);
}

/* Motion and state */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.calm-mode {
  --color-paper: #211b22;       /* soft dark cocoa background */
  --color-cream: #1b161c;       /* slightly darker for hero */
  --color-warm: #251e26;        /* soft dark background for sections */
  --color-nude: #382c28;        /* soft dark terracotta */
  --color-rose: #e6c2c7;        /* pastel rose mais claro pra leitura */
  --color-rose-soft: #2e2124;   /* very soft dark rose blob background */
  --color-blue: #232c35;        /* soft dark blue */
  --color-blue-soft: #27303a;   /* very soft dark blue-grey background */
  --color-blue-button: #a8c2d4; /* slate blue mais claro pra contraste em botões */
  --color-gold: #efe5c8;        /* gold pastel mais claro */
  --color-white: #2e2830;       /* card backgrounds */
  --color-ink: #f7f1eb;         /* títulos: quase branco quente */
  --color-text: #ddd0d2;        /* corpo: mais claro, legível */
  --color-muted: #b0a3a5;       /* legendas: legíveis sem brigar com o título */
  --color-line: rgba(255, 255, 255, 0.10);
  --color-accent-pink: #e6c2c7;
}

/* Garante leitura em qualquer parágrafo dentro de cards escuros */
body.calm-mode .service-card p,
body.calm-mode .floating-course-card p,
body.calm-mode .timeline-content-card .panel-step-text,
body.calm-mode .tour-details-panel .tour-details-desc,
body.calm-mode .help-form-col p,
body.calm-mode .action-btn-large .action-btn-desc,
body.calm-mode .modal-content p,
body.calm-mode .waitlist-box p,
body.calm-mode .hero-description,
body.calm-mode .services-subtitle,
body.calm-mode .section-description,
body.calm-mode .diagnosis-text,
body.calm-mode .help-subtitle,
body.calm-mode .course-description,
body.calm-mode .faq-answer {
  color: #e4dade !important;
}

body.calm-mode .professional-line,
body.calm-mode .card-tag,
body.calm-mode .panel-step-indicator,
body.calm-mode .course-badge,
body.calm-mode .footer-credo,
body.calm-mode .footer-address,
body.calm-mode .footer-copyright,
body.calm-mode .card-duration {
  color: #c9b9bb !important;
}

body.calm-mode .hero-title,
body.calm-mode .section-title,
body.calm-mode .services-title,
body.calm-mode .diagnosis-title,
body.calm-mode .help-title,
body.calm-mode .course-title,
body.calm-mode .panel-step-title,
body.calm-mode .tour-details-title,
body.calm-mode .floating-course-card h3,
body.calm-mode .service-card h3,
body.calm-mode .action-btn-title,
body.calm-mode .modal-title,
body.calm-mode .faq-question,
body.calm-mode .footer-logo {
  color: #ffffff !important;
}

/* Calm Mode specific overrides for sections and elements */
body.calm-mode .site-header {
  background: rgba(30, 26, 31, 0.94) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.calm-mode .gallery-section {
  /* nivelado no escuro: tom só no miolo, base nas bordas = emendas suaves */
  background: linear-gradient(180deg, var(--color-paper) 0%, #2b2123 22%, #2b2123 78%, var(--color-paper) 100%) !important;
}

body.calm-mode .playground-section {
  background: linear-gradient(180deg, var(--color-paper) 0%, #202b28 22%, #202b28 78%, var(--color-paper) 100%) !important;
}

body.calm-mode .main-footer {
  background: #19141a !important;
}

body.calm-mode .course-section {
  /* estático e nivelado (sem o gradiente diagonal que destoava) */
  background: linear-gradient(180deg, var(--color-paper) 0%, #232c35 34%, #202b28 62%, var(--color-paper) 100%) !important;
}

/* Beautiful card container dark theme style */
body.calm-mode .service-card,
body.calm-mode .diagnosis-art-wrapper,
body.calm-mode .timeline-content-card,
body.calm-mode .tour-details-panel,
body.calm-mode .gallery-main-view,
body.calm-mode .gallery-thumb-btn,
body.calm-mode .help-form-col,
body.calm-mode .action-btn-large,
body.calm-mode .modal-content,
body.calm-mode .waitlist-box,
body.calm-mode .floating-course-card,
body.calm-mode .doctor-card {
  background: rgba(46, 39, 48, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3) !important;
}

body.calm-mode .gallery-thumb-btn.active {
  border-color: var(--color-rose) !important;
}

/* Text color helper overrides inside dark cards */
body.calm-mode .service-card p,
body.calm-mode .timeline-content-card p,
body.calm-mode .tour-details-panel p,
body.calm-mode .help-form-col p,
body.calm-mode .action-btn-large p,
body.calm-mode .modal-content p,
body.calm-mode .waitlist-box p,
body.calm-mode .floating-course-card p {
  color: var(--color-text) !important;
}

/* Inputs and Forms */
body.calm-mode .form-input,
body.calm-mode .form-textarea,
body.calm-mode .waitlist-input {
  background: rgba(30, 25, 31, 0.72) !important;
  color: #eae4dd !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.calm-mode .form-input:focus,
body.calm-mode .form-textarea:focus,
body.calm-mode .waitlist-input:focus {
  border-color: var(--color-blue-button) !important;
  box-shadow: var(--shadow-focus) !important;
}

/* Buttons in Calm Mode */
body.calm-mode .btn-secondary {
  background: rgba(46, 39, 48, 0.9) !important;
  border-color: rgba(209, 168, 173, 0.28) !important;
  color: var(--color-rose) !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2) !important;
}

body.calm-mode .btn-outline {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* Playground no modo calmo: fundo escuro suave, sem inversão feia */
body.calm-mode .playground-canvas-wrapper {
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(225, 195, 165, 0.15), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(140, 170, 220, 0.18), transparent 70%),
    #1b161c !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
body.calm-mode .playground-canvas-wrapper canvas {
  background: transparent !important;
}

/* Dotted ring and identity divider adjustment */
body.calm-mode .doctor-dotted-ring {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.calm-mode .identity-divider-svg path,
body.calm-mode .footer-tree-svg path {
  stroke: var(--color-rose) !important;
}

/* New overrides to fix unadapted white elements */
body.calm-mode .doctor-card::after {
  background: rgba(46, 39, 48, 0.84) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.calm-mode .btn-primary {
  color: #ffffff !important;
  background: var(--color-blue-button) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.calm-mode .whatsapp-float-btn {
  color: #ffffff !important;
  background: #5c886f !important;
}

body.calm-mode .timeline-line-bg {
  background: rgba(255, 255, 255, 0.12) !important;
}

body.calm-mode .faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Physics Playground Chips */
body.calm-mode .physics-chip {
  background: rgba(46, 39, 48, 0.9) !important;
  color: #eae4dd !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25) !important;
}

body.calm-mode .physics-chip:nth-of-type(4n + 1),
body.calm-mode .physics-chip:nth-of-type(4n + 2),
body.calm-mode .physics-chip:nth-of-type(4n + 3),
body.calm-mode .physics-chip:nth-of-type(4n + 4) {
  background: radial-gradient(circle at 32% 28%, rgba(58, 50, 60, 0.96), rgba(40, 34, 44, 0.94)) !important;
}

@keyframes pulse {
  0% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.45);
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(7px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@media (max-width: 980px) {
  .site-header {
    min-height: var(--header-height);
    height: auto;
    padding: 10px 0;
  }

  .site-header-inner {
    width: min(680px, calc(100% - 40px));
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .site-nav {
    display: none;
  }

  .calm-toggle {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 10px;
  }

  .hero-section {
    min-height: auto;
    display: block;
    padding: 64px 0 56px;
  }

  .hero-blob-left,
  .hero-blob-right {
    display: none;
  }

  .hero-section::before {
    height: 44%;
    min-height: 330px;
    clip-path: none;
  }

  .hero-inner,
  .diagnosis-grid,
  .help-grid,
  .tour-container {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    width: min(620px, calc(100% - 44px));
    gap: 54px;
    padding: 0 0 22px;
  }

  .professional-line {
    margin-bottom: 22px;
  }

  .hero-copy {
    max-width: 100%;
    padding: 0;
    text-align: center;
  }

  .hero-description {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .doctor-card {
    justify-self: center;
    width: min(380px, 88vw);
    height: auto;
    aspect-ratio: 0.88;
    transform: none;
  }

  .doctor-dotted-ring {
    left: -108px;
    top: -58px;
    width: 196px;
    height: 196px;
  }

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

  .tour-details-panel {
    min-height: 0;
  }

  .gallery-interactive-viewer {
    grid-template-columns: 1fr;
  }

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

  .thumb-img {
    height: 108px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-left,
  .footer-right {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 20px;
    --section-y: 78px;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 44px);
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-actions .btn {
    flex: 1 1 170px;
  }

  .doctor-photo {
    border-radius: 28px;
  }

  .services-section {
    padding-top: 78px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 0;
  }

  .timeline-line-bg {
    display: none;
  }

  .timeline-nav-dots {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-nav-dot {
    min-height: 58px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 8px 12px;
    border: 1px solid rgba(72, 55, 48, 0.09);
    border-radius: var(--radius-card);
    background: rgba(255, 253, 248, 0.72);
    text-align: left;
  }

  .timeline-nav-dot::before {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
  }

  .gallery-image-caption {
    position: static;
    max-width: none;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
  }

  .playground-controls {
    align-items: stretch;
  }

  .playground-controls .btn {
    width: 100%;
  }

  .btn-submit {
    width: 100%;
  }

  .whatsapp-float-btn {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 520px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .calm-toggle {
    display: none;
  }

  .professional-line {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    max-width: 350px;
    font-size: clamp(34px, 10vw, 39px);
    line-height: 1.16;
  }

  .hero-description {
    max-width: 330px;
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.68;
  }

  .hero-actions {
    max-width: 280px;
    margin-inline: auto;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    flex: none;
  }

  .hero-actions .btn-outline,
  .hero-actions .btn-primary {
    width: 100%;
  }

  .doctor-card {
    width: min(332px, calc(100vw - 72px));
  }

  .doctor-dotted-ring {
    left: -64px;
    top: -40px;
    width: 148px;
    height: 148px;
    opacity: 0.82;
  }

  .btn {
    width: 100%;
    padding-inline: 18px;
  }

  .services-title {
    font-size: 20px;
  }

  .section-title,
  .diagnosis-title,
  .help-title {
    max-width: 300px;
    font-size: clamp(28px, 8.4vw, 32px);
    line-height: 1.13;
    overflow-wrap: anywhere;
  }

  .section-title {
    margin-inline: auto;
  }

  .section-description,
  .diagnosis-text,
  .help-subtitle {
    font-size: 15px;
    line-height: 1.62;
  }

  .service-card p,
  .section-description,
  .diagnosis-text,
  .help-subtitle,
  .tour-details-desc,
  .panel-step-text,
  .gallery-image-caption,
  .action-btn-desc,
  .modal-body {
    font-size: 15px;
  }

  .tour-details-title {
    font-size: 22px;
  }

  .panel-step-title {
    font-size: 25px;
  }

  .gallery-thumbnails-group {
    grid-template-columns: 1fr;
  }

  .thumb-img {
    height: 120px;
  }

  .action-btn-large {
    padding: 16px;
  }
}

/* Course Section (Coming Soon) */
.course-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) 0;
  /* estático e nivelado: tom suave no miolo, creme nas bordas (sem animar = mais leve) */
  background: linear-gradient(180deg, var(--color-paper) 0%, #f1f8f4 32%, #eef4f7 60%, var(--color-paper) 100%);
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.course-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.course-badge {
  display: inline-block;
  background: var(--color-blue);
  color: var(--color-blue-button);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(115, 144, 167, 0.15);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% { transform: scale(1); box-shadow: 0 4px 10px rgba(115, 144, 167, 0.15); }
  50% { transform: scale(1.04); box-shadow: 0 6px 15px rgba(115, 144, 167, 0.25); }
  100% { transform: scale(1); box-shadow: 0 4px 10px rgba(115, 144, 167, 0.15); }
}

.course-title {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 20px;
  color: var(--color-ink);
  line-height: 1.15;
}

.course-description {
  font-size: 17px;
  line-height: 1.68;
  color: var(--color-text);
  margin-bottom: 30px;
}

.course-features {
  list-style: none;
  padding: 0;
  margin: 0 0 38px;
  display: grid;
  gap: 16px;
}

.course-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--color-ink);
  font-weight: 500;
}

.feature-icon {
  font-size: 18px;
  line-height: 1;
}

.waitlist-box {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(72, 55, 48, 0.08);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.waitlist-box h4 {
  margin: 0 0 6px;
  color: var(--color-ink);
  font-size: 18px;
  font-weight: 800;
}

.waitlist-box p {
  margin: 0 0 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
}

.waitlist-input {
  flex: 1;
  border: 1px solid rgba(72, 55, 48, 0.13);
  border-radius: 999px;
  padding: 0 22px;
  outline: none;
  font-size: 14px;
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input:focus {
  border-color: var(--color-blue-button);
  box-shadow: var(--shadow-focus);
}

.waitlist-btn {
  width: auto;
  min-width: 150px;
}

.waitlist-success {
  display: none;
  margin-top: 12px;
  color: #558b6e;
  font-weight: 700;
  font-size: 14px;
}

.waitlist-success.is-visible {
  display: block;
}

/* Right side animated cards */
.course-preview-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.course-cards-container {
  position: relative;
  height: 380px;
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.floating-course-card {
  --rot: 0deg;
  --tx: 0px;
  --ty: 0px;
  position: absolute;
  width: 320px;
  background: var(--color-white);
  border: 1px solid rgba(72, 55, 48, 0.07);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(91, 67, 56, 0.08);
  transform: rotate(var(--rot)) translate(var(--tx), var(--ty));
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), opacity 0.4s var(--ease);
  cursor: pointer;
}

/* Hover PRESERVA a rotação/posição (só eleva) — sem o "pulo" que travava */
.floating-course-card:hover {
  transform: rotate(var(--rot)) translate(var(--tx), calc(var(--ty) - 10px)) scale(1.03);
  box-shadow: 0 24px 48px rgba(91, 67, 56, 0.16);
  z-index: 15;
}
/* Card trazido à frente por clique/toque (alternância confiável no mobile) */
.floating-course-card.is-front {
  transform: rotate(0deg) translate(0, 0) scale(1.05);
  box-shadow: 0 28px 56px rgba(91, 67, 56, 0.18);
  z-index: 20;
}

.card-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-blue-button);
  background: var(--color-blue-soft);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.floating-course-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--color-ink);
  line-height: 1.25;
}

.floating-course-card p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(72, 55, 48, 0.06);
  padding-top: 10px;
}

.card-duration {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-muted);
}

/* Stacking positions */
.card-mod-1 { --rot: -6deg; --tx: -26px; --ty: -34px; z-index: 1; }
.card-mod-2 { --rot: 2deg;  --tx: 14px;  --ty: 14px;  z-index: 2; }
.card-mod-3 { --rot: -2deg; --tx: -10px; --ty: 64px;  z-index: 3; }

/* Esmaece levemente os outros ao focar um (sem afetar o que está à frente) */
.course-cards-container:hover .floating-course-card:not(:hover):not(.is-front) {
  opacity: 0.62;
}

@media (max-width: 980px) {
  .course-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .course-cards-container {
    height: 340px;
  }

  .floating-course-card {
    width: 290px;
  }
}

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
    gap: 12px;
  }

  .waitlist-btn {
    width: 100%;
  }

  .course-cards-container {
    height: auto;
    flex-direction: column;
    gap: 20px;
    position: static;
  }

  .floating-course-card {
    position: static;
    width: 100%;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* =====================================================================
   Modo Ambiente Calmo — animação da borboleta + céu noturno + brilhos
   ===================================================================== */

/* --- Borboleta original do hero: ganha um vai-e-vem sutil --- */
@keyframes butterflyHover {
  0%, 100% { transform: rotate(8deg) translateY(0); }
  50%      { transform: rotate(12deg) translateY(-6px); }
}
@keyframes butterflyShimmer {
  0%, 100% { filter: drop-shadow(0 8px 16px rgba(82, 42, 63, 0.2)); }
  50%      { filter: drop-shadow(0 14px 24px rgba(184, 122, 132, 0.45)); }
}
.doctor-butterfly {
  animation:
    butterflyHover 6s ease-in-out infinite,
    butterflyShimmer 5s ease-in-out infinite;
  cursor: pointer;
}
.doctor-butterfly.is-launching {
  opacity: 0 !important;
  transform: rotate(8deg) translateY(-10px) scale(0.9) !important;
  transition: opacity 280ms ease, transform 280ms ease;
}

/* --- Borboleta voadora (overlay fullscreen) --- */
.butterfly-fly {
  position: fixed;
  top: 0;
  left: 50%;
  width: 76px;
  height: auto;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0) rotate(8deg);
  filter: drop-shadow(0 18px 30px rgba(82, 42, 63, 0.35));
  will-change: top, left, width, transform, opacity;
}
.butterfly-fly.is-flying-in {
  animation: bflyFlyIn 2600ms cubic-bezier(0.4, 0.05, 0.4, 1) forwards;
}
.butterfly-fly.is-flying-out {
  animation: bflyFlyOut 1800ms cubic-bezier(0.5, 0, 0.7, 0.95) forwards;
}

@keyframes bflyFlyIn {
  0% {
    top: 110px;
    left: calc(50% + 220px);
    width: 76px;
    opacity: 0;
    transform: translate(-50%, 0) rotate(8deg);
  }
  10% {
    opacity: 1;
  }
  28% {
    top: 18%;
    left: 28%;
    width: 140px;
    transform: translate(-50%, 0) rotate(-14deg);
  }
  52% {
    top: 36%;
    left: 72%;
    width: 260px;
    transform: translate(-50%, 0) rotate(16deg);
  }
  74% {
    top: 28%;
    left: 38%;
    width: 380px;
    transform: translate(-50%, 0) rotate(-8deg);
  }
  100% {
    top: 50%;
    left: 50%;
    width: 620px;
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
}

@keyframes bflyFlyOut {
  0% {
    top: 50%;
    left: 50%;
    width: 620px;
    opacity: 0.95;
    transform: translate(-50%, -50%) rotate(0deg);
  }
  55% {
    top: 22%;
    left: 38%;
    width: 240px;
    opacity: 1;
    transform: translate(-50%, 0) rotate(10deg);
  }
  100% {
    top: 110px;
    left: calc(50% + 220px);
    width: 76px;
    opacity: 0;
    transform: translate(-50%, 0) rotate(8deg);
  }
}

/* --- Camada de céu noturno --- */
.calm-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8000;
  opacity: 0;
  transition: opacity 1800ms cubic-bezier(0.4, 0, 0.2, 1);
}
body.calm-mode .calm-sky { opacity: 1; }

.calm-sky-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 8%, rgba(120, 90, 145, 0.42), transparent 70%),
    radial-gradient(ellipse 60% 50% at 82% 82%, rgba(140, 100, 160, 0.30), transparent 70%),
    linear-gradient(180deg, rgba(20, 12, 26, 0.55) 0%, rgba(18, 14, 24, 0.45) 50%, rgba(12, 8, 18, 0.60) 100%);
  mix-blend-mode: multiply;
}

.calm-stars { position: absolute; inset: 0; overflow: hidden; }
.calm-stars .star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255, 240, 220, 0.7);
  animation: starTwinkle var(--d, 3s) ease-in-out infinite;
  animation-delay: var(--ad, 0s);
}
.calm-stars .star.lg {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 12px 2px rgba(255, 235, 200, 0.85);
}
.calm-stars .star.warm { background: #ffd9b8; box-shadow: 0 0 10px 2px rgba(255, 200, 150, 0.7); }

@keyframes starTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

.calm-aurora {
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(ellipse 50% 22% at 30% 38%, rgba(184, 122, 132, 0.22), transparent 70%),
    radial-gradient(ellipse 45% 18% at 70% 55%, rgba(120, 156, 175, 0.20), transparent 70%),
    radial-gradient(ellipse 40% 14% at 50% 28%, rgba(225, 195, 165, 0.18), transparent 70%);
  filter: blur(50px);
  animation: auroraDrift 22s ease-in-out infinite;
}
@keyframes auroraDrift {
  0%   { transform: translate(-8%, -3%) rotate(0deg); opacity: 0.6; }
  50%  { transform: translate(8%, 4%)  rotate(6deg);  opacity: 0.85; }
  100% { transform: translate(-8%, -3%) rotate(0deg); opacity: 0.6; }
}

.calm-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 75% at 50% 50%, transparent 50%, rgba(8, 4, 14, 0.45) 100%);
  pointer-events: none;
}

/* Suaviza transição cor/fundo ao entrar/sair do modo calmo */
body, body .site-header, body .doctor-card, body .service-card,
body .floating-course-card, body .timeline-content-card, body .tour-details-panel,
body .gallery-main-view, body .action-btn-large, body .modal-content,
body .form-input, body .form-textarea, body .waitlist-input, body .btn,
body .footer-tree-svg path, body .identity-divider-svg path {
  transition:
    background-color 900ms var(--ease),
    color 700ms var(--ease),
    border-color 700ms var(--ease),
    box-shadow 700ms var(--ease),
    stroke 700ms var(--ease);
}

/* Live preview do botão "Ambiente Calmo" no modo escuro */
body.calm-mode .calm-toggle {
  background: rgba(46, 39, 48, 0.55);
  border-color: rgba(225, 195, 165, 0.35);
  color: #f3d8c0;
  box-shadow: 0 0 28px rgba(225, 195, 165, 0.18);
}
body.calm-mode .calm-icon {
  text-shadow: 0 0 12px rgba(255, 220, 170, 0.6);
}

/* =====================================================================
   Polimento "wow" geral (independente do modo)
   ===================================================================== */

/* Logo do header com respiração leve */
@keyframes brandBreathe {
  0%, 100% { letter-spacing: 0.14em; }
  50%      { letter-spacing: 0.18em; }
}
.site-brand span { animation: brandBreathe 8s ease-in-out infinite; }

/* Brilho sutil cruzando os cards no hover */
@keyframes cardSheen {
  0%   { background-position: -160% 0; }
  100% { background-position: 260% 0; }
}
/* IMPORTANTE: NÃO incluir .floating-course-card aqui — ele precisa
   manter position: absolute pra empilhar com rotação. */
.service-card,
.action-btn-large,
.timeline-content-card,
.tour-details-panel,
.help-form-col,
.waitlist-box,
.gallery-main-view {
  overflow: hidden;
}
.service-card,
.action-btn-large,
.timeline-content-card,
.tour-details-panel,
.help-form-col,
.waitlist-box,
.gallery-main-view {
  position: relative;
}
.service-card::after,
.action-btn-large::after,
.timeline-content-card::after,
.tour-details-panel::after,
.help-form-col::after,
.waitlist-box::after,
.gallery-main-view::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.42) 50%, transparent 100%);
  background-size: 220% 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease);
  mask: linear-gradient(180deg, #000 0%, transparent 40%);
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 40%);
}
.service-card:hover::after,
.action-btn-large:hover::after,
.timeline-content-card:hover::after,
.tour-details-panel:hover::after,
.help-form-col:hover::after,
.waitlist-box:hover::after,
.gallery-main-view:hover::after {
  opacity: 0.65;
  animation: cardSheen 1300ms ease-out 1;
}
body.calm-mode .service-card::after,
body.calm-mode .action-btn-large::after,
body.calm-mode .timeline-content-card::after,
body.calm-mode .tour-details-panel::after,
body.calm-mode .help-form-col::after,
body.calm-mode .waitlist-box::after,
body.calm-mode .gallery-main-view::after {
  background: linear-gradient(90deg, transparent 0%, rgba(225, 195, 165, 0.22) 50%, transparent 100%);
}

/* Ícone dos serviços com flutuação suave + glow no hover */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.service-icon img {
  animation: iconFloat 5s ease-in-out infinite;
  transition: transform 300ms var(--ease), filter 300ms var(--ease);
}
.service-card:nth-child(2) .service-icon img { animation-delay: -1.2s; }
.service-card:nth-child(3) .service-icon img { animation-delay: -2.4s; }
.service-card:nth-child(4) .service-icon img { animation-delay: -3.6s; }
.service-card:hover .service-icon img {
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(0 12px 18px rgba(184, 122, 132, 0.28));
}

/* Botões com brilho ao passar o mouse */
.btn { position: relative; overflow: hidden; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 600ms var(--ease);
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.97); }

/* Action-btn-large: seta empurra ao hover */
.action-btn-large {
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
.action-btn-large:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(58, 46, 43, 0.08); }
.action-btn-arrow { transition: transform 260ms var(--ease); }
.action-btn-large:hover .action-btn-arrow { transform: translateX(6px); }

/* Dots do tour ganham um halo elegante */
.tour-hotspot { transition: transform 220ms var(--ease); }
.tour-hotspot:hover { transform: scale(1.18); }

/* Anel pontilhado do doctor-card girando lento */
@keyframes ringRotate {
  to { transform: rotate(360deg); }
}
.doctor-dotted-ring {
  animation: ringRotate 80s linear infinite;
}

/* Reveal: deslocamento mais suave + leve scale */
.reveal { transform: translateY(28px) scale(0.985); }
.reveal.is-visible { transform: translateY(0) scale(1); }

/* WhatsApp float button com pulso amigável */
@keyframes waPulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.35); }
  50%      { box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35), 0 0 0 18px rgba(37, 211, 102, 0); }
}
.whatsapp-float-btn { animation: waPulse 2.6s ease-in-out infinite; }
body.calm-mode .whatsapp-float-btn { animation: none; }

/* Nav links ganham um sublinhado animado mais bonito */
.site-nav a { position: relative; }
.site-nav a::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--color-rose), transparent);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.2);
  transition: opacity 200ms var(--ease), transform 220ms var(--ease);
}
.site-nav a:hover::before { opacity: 0.9; transform: translateX(-50%) scaleX(1); }

/* Nav links bem visíveis no Modo Calmo */
body.calm-mode .site-header { color: #f3ecec; }
body.calm-mode .site-nav a {
  color: #f3ecec;
  text-shadow: 0 0 14px rgba(255, 220, 200, 0.18);
  opacity: 0.95;
  letter-spacing: 0.13em;
  font-weight: 800;
}
body.calm-mode .site-nav a:hover {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 18px rgba(255, 200, 180, 0.5);
}
body.calm-mode .site-brand span { color: #ffffff; }
body.calm-mode .site-brand small { color: rgba(255, 235, 220, 0.75); }

/* =====================================================================
   Playground Sensorial — vida nova: brilho, partículas e cores
   ===================================================================== */

/* Wrapper do playground: fundo com gradiente sutil + glow nas bordas */
.playground-canvas-wrapper {
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(184, 122, 132, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(159, 217, 199, 0.18), transparent 70%),
    var(--color-paper);
  transition: background 600ms var(--ease);
}

/* Partículas decorativas (pontinhos coloridos flutuando atrás dos chips) */
.playground-canvas-wrapper::before,
.playground-canvas-wrapper::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* PERFORMANCE: removido filter:blur(40px) + animação. Eles recompunham uma
     área grande borrada a CADA frame e eram a principal causa de travar a
     rolagem. O gradiente radial dá o mesmo brilho suave de graça (estático). */
}
.playground-canvas-wrapper::before {
  width: 260px;
  height: 260px;
  top: 6%;
  left: 4%;
  background: radial-gradient(circle, rgba(231, 196, 201, 0.34), rgba(231, 196, 201, 0) 70%);
}
.playground-canvas-wrapper::after {
  width: 300px;
  height: 300px;
  bottom: 4%;
  right: 6%;
  background: radial-gradient(circle, rgba(159, 217, 199, 0.30), rgba(159, 217, 199, 0) 70%);
}
@keyframes pgFloatA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 30px) scale(1.12); }
}
@keyframes pgFloatB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, -20px) scale(1.08); }
}

/* Calm mode: partículas com tons noturnos */
body.calm-mode .playground-canvas-wrapper::before {
  background: radial-gradient(circle, rgba(225, 195, 165, 0.22), rgba(225, 195, 165, 0) 70%);
}
body.calm-mode .playground-canvas-wrapper::after {
  background: radial-gradient(circle, rgba(140, 170, 220, 0.22), rgba(140, 170, 220, 0) 70%);
}

/* Chips de física: paleta colorida + glow ao redor */
.physics-chip {
  transition:
    background 300ms var(--ease),
    box-shadow 300ms var(--ease),
    border-color 300ms var(--ease);
}
.physics-chip:hover {
  box-shadow:
    0 16px 36px rgba(58, 46, 43, 0.14),
    0 0 0 4px rgba(184, 122, 132, 0.12);
}

/* Paleta de cores baseada no personagem de Divertidamente (Modo Claro) */
.physics-chip.chip-alegria {
  background: linear-gradient(135deg, #fffdf0, #fef9d9);
  border-color: rgba(241, 196, 15, 0.55);
  color: #7d6608;
  box-shadow:
    0 12px 28px rgba(241, 196, 15, 0.12),
    0 0 28px rgba(241, 196, 15, 0.10) inset;
}
.physics-chip.chip-tristeza {
  background: linear-gradient(135deg, #ebf5fb, #d4e6f1);
  border-color: rgba(93, 173, 226, 0.55);
  color: #1b4f72;
  box-shadow:
    0 12px 28px rgba(93, 173, 226, 0.12),
    0 0 28px rgba(93, 173, 226, 0.10) inset;
}
.physics-chip.chip-raiva {
  background: linear-gradient(135deg, #fdf2e9, #fadbd8);
  border-color: rgba(231, 76, 60, 0.55);
  color: #78281f;
  box-shadow:
    0 12px 28px rgba(231, 76, 60, 0.12),
    0 0 28px rgba(231, 76, 60, 0.10) inset;
}
.physics-chip.chip-medo {
  background: linear-gradient(135deg, #f4ecf7, #ebdef0);
  border-color: rgba(175, 122, 197, 0.55);
  color: #512e5f;
  box-shadow:
    0 12px 28px rgba(175, 122, 197, 0.12),
    0 0 28px rgba(175, 122, 197, 0.10) inset;
}
.physics-chip.chip-nojinho {
  background: linear-gradient(135deg, #eafaf1, #d5f5e3);
  border-color: rgba(46, 204, 113, 0.55);
  color: #196f3d;
  box-shadow:
    0 12px 28px rgba(46, 204, 113, 0.12),
    0 0 28px rgba(46, 204, 113, 0.10) inset;
}
.physics-chip.chip-ansiedade {
  background: linear-gradient(135deg, #fdf6e2, #f5cba7);
  border-color: rgba(230, 126, 34, 0.55);
  color: #7e5109;
  box-shadow:
    0 12px 28px rgba(230, 126, 34, 0.12),
    0 0 28px rgba(230, 126, 34, 0.10) inset;
}
.physics-chip.chip-tedio {
  background: linear-gradient(135deg, #f2f3f4, #d5dbdb);
  border-color: rgba(93, 109, 126, 0.55);
  color: #2c3e50;
  box-shadow:
    0 12px 28px rgba(93, 109, 126, 0.12),
    0 0 28px rgba(93, 109, 126, 0.10) inset;
}
.physics-chip.chip-vergonha {
  background: linear-gradient(135deg, #fef5f6, #f9ebed);
  border-color: rgba(236, 112, 99, 0.45);
  color: #78241c;
  box-shadow:
    0 12px 28px rgba(236, 112, 99, 0.12),
    0 0 28px rgba(236, 112, 99, 0.10) inset;
}

/* Calm mode: cores de Divertidamente em tons noturnos suaves */
body.calm-mode .physics-chip.chip-alegria {
  background: linear-gradient(135deg, rgba(60, 55, 40, 0.95), rgba(50, 45, 30, 0.92)) !important;
  border-color: rgba(241, 196, 15, 0.35) !important;
  color: #fef9d9 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(241, 196, 15, 0.15) inset !important;
}
body.calm-mode .physics-chip.chip-tristeza {
  background: linear-gradient(135deg, rgba(30, 45, 60, 0.95), rgba(24, 36, 50, 0.92)) !important;
  border-color: rgba(93, 173, 226, 0.35) !important;
  color: #d4e6f1 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(93, 173, 226, 0.15) inset !important;
}
body.calm-mode .physics-chip.chip-raiva {
  background: linear-gradient(135deg, rgba(60, 35, 35, 0.95), rgba(50, 25, 25, 0.92)) !important;
  border-color: rgba(231, 76, 60, 0.35) !important;
  color: #fadbd8 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(231, 76, 60, 0.15) inset !important;
}
body.calm-mode .physics-chip.chip-medo {
  background: linear-gradient(135deg, rgba(50, 35, 60, 0.95), rgba(40, 28, 50, 0.92)) !important;
  border-color: rgba(175, 122, 197, 0.35) !important;
  color: #ebdef0 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(175, 122, 197, 0.15) inset !important;
}
body.calm-mode .physics-chip.chip-nojinho {
  background: linear-gradient(135deg, rgba(35, 55, 45, 0.95), rgba(28, 45, 35, 0.92)) !important;
  border-color: rgba(46, 204, 113, 0.35) !important;
  color: #d5f5e3 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(46, 204, 113, 0.15) inset !important;
}
body.calm-mode .physics-chip.chip-ansiedade {
  background: linear-gradient(135deg, rgba(60, 45, 35, 0.95), rgba(50, 35, 28, 0.92)) !important;
  border-color: rgba(230, 126, 34, 0.35) !important;
  color: #f5cba7 !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(230, 126, 34, 0.15) inset !important;
}
body.calm-mode .physics-chip.chip-tedio {
  background: linear-gradient(135deg, rgba(45, 50, 55, 0.95), rgba(38, 42, 48, 0.92)) !important;
  border-color: rgba(93, 109, 126, 0.35) !important;
  color: #d5dbdb !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(93, 109, 126, 0.15) inset !important;
}
body.calm-mode .physics-chip.chip-vergonha {
  background: linear-gradient(135deg, rgba(60, 40, 45, 0.95), rgba(50, 30, 35, 0.92)) !important;
  border-color: rgba(236, 112, 99, 0.35) !important;
  color: #f9ebed !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 24px rgba(236, 112, 99, 0.15) inset !important;
}

/* Chip que está sendo arrastado ganha um boost de glow */
.physics-chip.is-dragging,
.physics-chip:active {
  filter: brightness(1.08);
  z-index: 5;
}
.physics-chip.is-popped {
  animation: chipPop 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes chipPop {
  0%   { transform-origin: center; }
  35%  { filter: brightness(1.3) saturate(1.2); }
  100% { filter: brightness(1) saturate(1); }
}

/* Ripple que aparece quando o chip é arremessado */
.playground-ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(184, 122, 132, 0.45);
  background: radial-gradient(circle, rgba(184, 122, 132, 0.15), transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
  animation: rippleOut 700ms ease-out forwards;
  z-index: 1;
}
body.calm-mode .playground-ripple {
  border-color: rgba(230, 194, 199, 0.55);
  background: radial-gradient(circle, rgba(230, 194, 199, 0.18), transparent 70%);
}
@keyframes rippleOut {
  0%   { opacity: 0.85; transform: translate(-50%, -50%) scale(0.4); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(2.2); }
}

/* Botões do playground com hover mais marcante */
.playground-controls .btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 32px rgba(58, 46, 43, 0.12);
}
.playground-controls .btn.active {
  background: var(--color-blue-button);
  color: var(--color-white);
  border-color: var(--color-blue-button);
  box-shadow: 0 0 0 4px rgba(184, 122, 132, 0.18);
}

/* Reduce motion final */
@media (prefers-reduced-motion: reduce) {
  .doctor-butterfly,
  .butterfly-fly,
  .calm-stars .star,
  .calm-aurora,
  .service-icon img,
  .doctor-dotted-ring,
  .site-brand span,
  .whatsapp-float-btn {
    animation: none !important;
  }
  .butterfly-fly.is-flying-in,
  .butterfly-fly.is-flying-out {
    animation-duration: 1ms !important;
  }
}

/* =====================================================================
   Camada extra de UI animada — progress bar, orbs, tilt, sparkles,
   scroll-spy, timeline animada, título com brilho
   ===================================================================== */

/* ---------- Barra de progresso de leitura (topo) ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 9500;
  background: linear-gradient(90deg, var(--color-rose), #e9c0c5 45%, var(--color-blue-button));
  box-shadow: 0 0 12px rgba(184, 122, 132, 0.5);
  border-radius: 0 2px 2px 0;
  transition: width 90ms linear;
  pointer-events: none;
}
body.calm-mode .scroll-progress {
  background: linear-gradient(90deg, #e6c2c7, #efe5c8 45%, #a8c2d4);
  box-shadow: 0 0 16px rgba(230, 194, 199, 0.6);
}

/* ---------- Orbs flutuando no hero ---------- */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* PERFORMANCE + nitidez: removido filter:blur(60px) ANIMADO ×3 (peso enorme no
     scroll). O gradiente radial já dá o esfumado suave. Estáticos, INTEIROS (sem
     sangrar pra fora da borda) e com o MESMO tom rosa = uniformes. */
}
.hero-orb.orb-a {
  width: 260px; height: 260px;
  top: 30px; left: 30px;
  background: radial-gradient(circle, rgba(231, 196, 201, 0.50), transparent 68%);
}
.hero-orb.orb-b {
  width: 260px; height: 260px;
  bottom: 30px; left: 32%;
  background: radial-gradient(circle, rgba(159, 217, 199, 0.42), transparent 68%);
}
.hero-orb.orb-c {
  width: 260px; height: 260px;
  top: 22%; right: 30px;
  background: radial-gradient(circle, rgba(231, 196, 201, 0.50), transparent 68%);
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(34px, -26px) scale(1.1); }
}
body.calm-mode .hero-orb { opacity: 0.4; }

/* ---------- Entrada do hero (carregamento) ---------- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cardFadeIn {
  from { opacity: 0; filter: blur(6px); }
  to   { opacity: 1; filter: blur(0); }
}
.hero-copy .professional-line { animation: heroIn 0.7s var(--ease) 0.05s both; }
.hero-description { animation: heroIn 0.7s var(--ease) 0.30s both; }
.hero-actions { animation: heroIn 0.7s var(--ease) 0.42s both; }
.doctor-card { animation: cardFadeIn 0.9s var(--ease) 0.22s both; }

/* ---------- Título do hero com brilho deslizante ---------- */
.hero-title {
  background: linear-gradient(100deg, #3A2E2B 0%, #3A2E2B 36%, #B87A84 50%, #3A2E2B 64%, #3A2E2B 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: heroIn 0.7s var(--ease) 0.16s both, heroShimmer 7s ease-in-out 1.1s infinite;
}
@keyframes heroShimmer {
  0%   { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
body.calm-mode .hero-title {
  background: linear-gradient(100deg, #ffffff 0%, #ffffff 36%, #efe5c8 50%, #ffffff 64%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ---------- CTA principal do hero pulsando suave ---------- */
.hero-actions .btn-primary {
  animation: ctaPulse 3.2s ease-in-out infinite;
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 16px 30px rgba(184, 122, 132, 0.18); }
  50%      { box-shadow: 0 16px 40px rgba(184, 122, 132, 0.34), 0 0 0 6px rgba(184, 122, 132, 0.06); }
}

/* ---------- Tilt 3D (cartões) ---------- */
.doctor-card {
  transition: transform 160ms var(--ease), box-shadow 220ms var(--ease);
  will-change: transform;
  transform-style: preserve-3d;
}

/* ---------- Botões magnéticos: transição mais suave no retorno ---------- */
.hero-actions .btn { transition: transform 200ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease); }

/* ---------- Rastro de partículas da borboleta ---------- */
.bfly-sparkle {
  position: fixed;
  z-index: 8999;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, rgba(255, 220, 180, 0.7) 45%, transparent 72%);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  animation: sparklePop 820ms ease-out forwards;
  will-change: transform, opacity;
}
@keyframes sparklePop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -120%) scale(1.5); }
}

/* ---------- Scroll-spy: link ativo na nav ---------- */
.site-nav a.active { color: var(--color-ink); }
.site-nav a.active::after {
  opacity: 0.75;
  transform: translateX(-50%) scaleX(1);
}
body.calm-mode .site-nav a.active {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 210, 190, 0.5);
}

/* ---------- Timeline: linha que preenche + dot pulsando ---------- */
.timeline-line-bg { overflow: visible; }
.timeline-line-bg::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-rose), #e9c0c5);
  box-shadow: 0 0 8px rgba(184, 122, 132, 0.5);
  transition: width 1500ms var(--ease) 250ms;
}
.timeline-container.is-visible .timeline-line-bg::after { width: 100%; }
body.calm-mode .timeline-line-bg::after {
  background: linear-gradient(90deg, #e6c2c7, #efe5c8);
  box-shadow: 0 0 10px rgba(230, 194, 199, 0.5);
}
.timeline-nav-dot.active::before {
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 122, 132, 0.45); }
  50%      { box-shadow: 0 0 0 9px rgba(184, 122, 132, 0); }
}

/* ---------- Reduce motion: silencia os novos efeitos ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-title,
  .hero-actions .btn-primary,
  .timeline-nav-dot.active::before,
  .hero-copy .professional-line,
  .hero-description,
  .hero-actions,
  .doctor-card,
  .bfly-sparkle {
    animation: none !important;
  }
  .hero-title {
    -webkit-text-fill-color: #3A2E2B;
    color: #3A2E2B;
  }
  body.calm-mode .hero-title {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
  }
}

/* =====================================================================
   Ajustes finos: ícones de serviço (calmo), modal sólido, Tour "Joia"
   ===================================================================== */

/* ---------- Ícones dos serviços no Modo Calmo (mesma proporção da base) ---------- */
body.calm-mode .service-icon {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
body.calm-mode .service-icon img {
  width: 72px;
  height: 72px;
  mix-blend-mode: normal;
  opacity: 1;
}
body.calm-mode .service-card:hover .service-icon {
  box-shadow: none;
}

/* ---------- Modal: sólido, sem transparência vazando ---------- */
.modal-backdrop {
  background: rgba(40, 30, 34, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.modal-content {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
body.calm-mode .modal-backdrop {
  background: rgba(6, 4, 10, 0.74) !important;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
body.calm-mode .modal-content {
  background: #221c25 !important;       /* sólido, sem vazamento */
  border-color: rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- Tour Virtual: efeito "Joia da Realidade" (cores do autismo) ---------- */
.tour-details-panel { position: relative; overflow: hidden; }
.tour-details-title,
.tour-details-desc { position: relative; z-index: 1; }

/* A borboleta DESCE pelo lado esquerdo (sup. esq. → inf. esq.) deixando
   PEÇAS de quebra-cabeça (autismo), e as letras vão sendo construídas. */

/* Peça de quebra-cabeça REAL: silhueta de puzzle em SVG (2 saliências + 2 recortes,
   cantos arredondados). O SVG é injetado pelo JS; aqui só o posicionamento, a
   sombra leve (respeita a silhueta) e as animações de entrada/saída. */
.tour-puz {
  position: absolute;
  width: 30px;
  height: 30px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(90, 64, 70, 0.22));
  animation: tourPuzPop 520ms cubic-bezier(0.34, 1.5, 0.5, 1) both;
}
.tour-puz svg { display: block; width: 100%; height: 100%; overflow: visible; }

/* Linha pontilhada que liga as peças (o "caminho desenhado" do voo) */
.tour-trail-svg {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
  /* o rastro se redesenha quadro a quadro (máscara cometa); isolá-lo numa camada
     própria evita repintar a borboleta/o texto ao lado -> animação mais fluida */
  transform: translateZ(0);
  will-change: opacity;
  contain: layout paint;
}
@keyframes tourPuzPop {
  0%   { opacity: 0; transform: scale(0.2) rotate(-28deg); }
  70%  { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(var(--pr, 0deg)); }
}
/* saída suave do rastro (animação própria sobrepõe o fill do pop) */
.tour-puz.is-leaving { animation: tourPuzFade 440ms var(--ease) forwards; }
@keyframes tourPuzFade {
  from { opacity: 1; transform: scale(1) rotate(var(--pr, 0deg)); }
  to   { opacity: 0; transform: scale(0.78) rotate(var(--pr, 0deg)); }
}

/* Borboleta desce pelo canto esquerdo */
.tour-butterfly {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: auto;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transform-origin: center;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 12px rgba(184, 122, 132, 0.4));
}
/* O voo (curva + loop de 360°) é desenhado em JS via Web Animations API
   (playButterfly), calculado a partir do tamanho do painel -> responsivo. */

/* Quadrinho: foto REAL do detalhe clicado, emoldurada como um retratinho */
.tour-panel-photo {
  display: block;
  width: min(250px, 72%);
  margin: 0 auto 14px;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: 0 12px 26px rgba(90, 64, 70, 0.2);
  transform: rotate(-2deg);
}
.tour-panel-photo.is-in { animation: tourPhotoIn 520ms var(--ease) both; }
@keyframes tourPhotoIn {
  from { opacity: 0; transform: rotate(-2deg) translateY(12px) scale(0.94); }
  to   { opacity: 1; transform: rotate(-2deg) translateY(0) scale(1); }
}
body.calm-mode .tour-panel-photo {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
}
@media (prefers-reduced-motion: reduce) {
  .tour-panel-photo.is-in { animation: none !important; }
}

/* Texto se REORGANIZA: cada pedaço vem de uma posição espalhada para o lugar */
.tour-word { display: inline-block; white-space: nowrap; }
.tour-piece {
  display: inline-block;
  white-space: pre;
  will-change: transform, opacity;
}
.tour-details-panel.is-assembling .tour-piece {
  animation: tourAssemble 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes tourAssemble {
  0%   { opacity: 0; transform: translate(var(--dx, 0px), var(--dy, -16px)) rotate(var(--r, -8deg)) scale(0.78); filter: blur(2px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
  .tour-butterfly, .tour-puz,
  .tour-details-panel.is-assembling .tour-piece {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .tour-butterfly, .tour-puz, .tour-trail-svg { opacity: 0 !important; }
}

/* Imagem do consultório "dobra a realidade" junto */
.tour-main-img { transition: filter 320ms var(--ease); }
.tour-viewer-wrapper.is-warping .tour-main-img {
  animation: imgWarp 820ms var(--ease);
}
@keyframes imgWarp {
  0%   { filter: none; }
  40%  { filter: saturate(1.55) hue-rotate(18deg) brightness(1.06) contrast(1.05); }
  100% { filter: none; }
}

/* Anel multicolor (quebra-cabeça) que emana do ponto clicado */
.tour-puzzle-ripple {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  pointer-events: none;
  z-index: 6;
  background: conic-gradient(from 0deg,
    #2196f3, #e53935, #ffc107, #43a047, #2196f3);
  filter: blur(2px) saturate(1.5);
  opacity: 0.95;
  mix-blend-mode: screen;
  animation: puzzleRing 780ms ease-out forwards;
}
@keyframes puzzleRing {
  0%   { opacity: 0.95; transform: translate(-50%, -50%) scale(0.3); }
  100% { opacity: 0;    transform: translate(-50%, -50%) scale(7.5); }
}

@media (prefers-reduced-motion: reduce) {
  .tour-warp,
  .tour-puzzle-ripple,
  .tour-viewer-wrapper.is-warping .tour-main-img,
  .tour-details-panel.is-warping .tour-details-title,
  .tour-details-panel.is-warping .tour-details-desc {
    animation: none !important;
  }
}

/* =====================================================================
   Cantinho "Como Chegar" — FAB animado + card com mapa, Maps e Uber
   ===================================================================== */
.locate-wrap {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 940;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* --- Launcher (FAB) --- */
.locate-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #b87a84, #8f5e67);
  color: #fff;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(184, 122, 132, 0.4);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.locate-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(184, 122, 132, 0.5);
}
.locate-fab:active { transform: translateY(0) scale(0.97); }
.locate-fab-icon {
  display: inline-flex;
  animation: locatePinBob 2.4s ease-in-out infinite;
}
@keyframes locatePinBob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-3px) rotate(-6deg); }
}
.locate-fab-label { white-space: nowrap; }

/* Halo pulsante ao redor do FAB pra chamar atenção */
.locate-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(184, 122, 132, 0.5);
  animation: locateHalo 2.8s ease-out infinite;
  pointer-events: none;
}
.locate-fab { position: relative; }
@keyframes locateHalo {
  0%   { box-shadow: 0 0 0 0 rgba(184, 122, 132, 0.45); }
  70%  { box-shadow: 0 0 0 16px rgba(184, 122, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 122, 132, 0); }
}

/* --- Card que abre --- */
.locate-card {
  /* ABSOLUTO: abre ACIMA do FAB sem empurrá-lo (antes era filho flex e o FAB
     "pulava" pra cima ao abrir / "teletransportava" pra baixo ao fechar). */
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  width: 320px;
  max-width: calc(100vw - 48px);
  background: #ffffff;
  border: 1px solid rgba(58, 46, 43, 0.1);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(58, 46, 43, 0.22);
  overflow: hidden;
  transform-origin: bottom left;
  transform: scale(0.94) translateY(14px);
  opacity: 0;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms var(--ease);
  pointer-events: none;
}
.locate-card:not([hidden]) {
  /* garante render mesmo com hidden removido antes da classe */
}
.locate-wrap.is-open .locate-card {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.locate-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 12px;
  background: linear-gradient(135deg, #f7ece9, #efe1de);
  border-bottom: 1px solid rgba(58, 46, 43, 0.08);
}
.locate-card-head strong {
  display: block;
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-ink);
}
.locate-card-head span {
  font-size: 12px;
  color: var(--color-muted);
}
.locate-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(58, 46, 43, 0.06);
  color: var(--color-ink);
  cursor: pointer;
  transition: background 160ms var(--ease), transform 160ms var(--ease);
}
.locate-close:hover { background: rgba(58, 46, 43, 0.12); transform: rotate(90deg); }

.locate-map {
  position: relative;
  height: 168px;
  background:
    repeating-linear-gradient(90deg, rgba(120,150,170,0.10) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(0deg, rgba(120,150,170,0.10) 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #e8eef0, #dde7ea);
}
.locate-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.locate-map-pin {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -100%);
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3));
  animation: locatePinDrop 2.6s ease-in-out infinite;
}
@keyframes locatePinDrop {
  0%, 100% { transform: translate(-50%, -100%); }
  50%      { transform: translate(-50%, -118%); }
}

.locate-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 14px 16px 4px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text);
  font-weight: 600;
}
.locate-address svg { flex-shrink: 0; margin-top: 2px; color: var(--color-rose); }

.locate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 16px 16px;
}
.locate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), filter 180ms var(--ease);
}
.locate-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16); }
.locate-btn:active { transform: translateY(0) scale(0.97); }
.locate-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 600ms var(--ease);
}
.locate-btn:hover::before { transform: translateX(120%); }
.locate-btn.maps {
  background: linear-gradient(135deg, #2a9d54, #1a7e40);
  color: #fff;
  box-shadow: 0 8px 18px rgba(26, 126, 64, 0.3);
}
.locate-btn.uber {
  background: linear-gradient(135deg, #2b2b2b, #050505);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

/* --- Calm mode --- */
body.calm-mode .locate-card {
  background: #221c25;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
}
body.calm-mode .locate-card-head {
  background: linear-gradient(135deg, rgba(70, 55, 64, 0.7), rgba(48, 38, 48, 0.7));
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.calm-mode .locate-card-head strong { color: #fff; }
body.calm-mode .locate-card-head span { color: #b0a3a5; }
body.calm-mode .locate-close { background: rgba(255, 255, 255, 0.1); color: #eae4dd; }
body.calm-mode .locate-address { color: #ddd0d2; }
body.calm-mode .locate-fab {
  background: linear-gradient(135deg, #c98b95, #9c6670);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(230, 194, 199, 0.18);
}

/* --- Responsivo: em telas pequenas vira só ícone --- */
@media (max-width: 560px) {
  .locate-fab-label { display: none; }
  .locate-fab { padding: 0; width: 52px; height: 52px; justify-content: center; }
  .locate-wrap { left: 16px; bottom: 16px; }
  .locate-card { width: calc(100vw - 32px); }
}

@media (prefers-reduced-motion: reduce) {
  .locate-fab-icon,
  .locate-fab::after,
  .locate-map-pin {
    animation: none !important;
  }
  .locate-card { transition: opacity 200ms ease; transform: none; }
  .locate-wrap.is-open .locate-card { transform: none; }
}

/* Timeline redesign: modern year sweep */
.timeline-section {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 216, 218, 0.78) 0 82px, transparent 83px),
    radial-gradient(circle at 86% 82%, rgba(221, 233, 225, 0.72) 0 118px, transparent 119px),
    linear-gradient(180deg, #fbfaf8 0%, #f8f4f1 100%);
}

.timeline-section .section-bg-shapes {
  opacity: 0.48;
  filter: blur(1px);
}

.timeline-section .section-title {
  color: #342926;
  font-size: clamp(42px, 5vw, 70px);
  letter-spacing: 0;
}

.timeline-section .section-description {
  max-width: 760px;
  color: #756b67;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.65;
}

.timeline-container {
  --timeline-shell-width: min(1040px, 100%);
  margin-top: clamp(54px, 6vw, 78px);
  padding-bottom: 10px;
  min-height: 520px;
  z-index: 1;
}

.timeline-container::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 132px;
  width: min(980px, 90vw);
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.9), rgba(244, 233, 230, 0.22) 62%, transparent 72%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.timeline-bg-year-container {
  top: 120px;
  bottom: auto;
  width: min(1180px, 100vw);
  height: 430px;
  z-index: 1;
  overflow: visible;
}

.timeline-bg-year-layer {
  top: 52%;
  left: 10%;
  color: #342926;
  font-size: clamp(210px, 30vw, 430px);
  font-weight: 900;
  letter-spacing: -0.09em;
  opacity: 0.055;
  text-shadow: 0 26px 56px rgba(58, 46, 43, 0.12);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    left 850ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 850ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-bg-year-layer.exit {
  opacity: 0;
  filter: blur(14px);
  transform: translate(-50%, -50%) scale(0.88);
}

.timeline-bg-year-layer.enter {
  opacity: 0;
  filter: blur(14px);
  transform: translate(-50%, -50%) scale(1.1);
}

.timeline-nav-wrapper {
  width: var(--timeline-shell-width);
  max-width: var(--timeline-shell-width);
  margin: 0 auto clamp(40px, 4vw, 58px);
  padding: 10px 0 18px;
  z-index: 5;
}

.timeline-line-bg,
.timeline-line-progress {
  top: 20px;
  left: 10%;
}

.timeline-line-bg {
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(184, 122, 132, 0.18), rgba(184, 122, 132, 0.36), rgba(184, 122, 132, 0.18));
  box-shadow: 0 10px 26px rgba(184, 122, 132, 0.14);
}

.timeline-line-bg::after {
  display: none;
}

.timeline-line-progress {
  height: 2px;
  background: linear-gradient(90deg, #b87a84, #e7bdc3);
  box-shadow: 0 0 18px rgba(184, 122, 132, 0.34);
  transition: width 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.timeline-nav-dots {
  gap: 18px;
}

.timeline-nav-dot {
  position: relative;
  gap: 12px;
  padding: 0;
}

.timeline-nav-dot::before {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(184, 122, 132, 0.34);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.82), 0 8px 20px rgba(58, 46, 43, 0.08);
}

.timeline-nav-dot:hover::before {
  background: #fff;
  border-color: #b87a84;
  transform: scale(1.12);
}

.timeline-nav-dot.active::before {
  width: 22px;
  height: 22px;
  background: #b87a84;
  border-color: #f1d8dc;
  box-shadow: 0 0 0 8px rgba(184, 122, 132, 0.15), 0 14px 28px rgba(184, 122, 132, 0.24);
  transform: translateY(-2px);
}

.dot-num {
  color: #3a2e2b;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.timeline-nav-dot.active .dot-num {
  color: #b87a84;
  transform: translateY(-1px);
}

.dot-label {
  color: #716663;
  font-size: 14px;
}

.timeline-content-card {
  width: var(--timeline-shell-width);
  min-height: 330px;
  border-radius: clamp(34px, 4vw, 54px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46)),
    radial-gradient(circle at 22% 50%, rgba(255, 255, 255, 0.54), transparent 36%);
  box-shadow: 0 34px 90px rgba(58, 46, 43, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(26px) saturate(1.08);
  -webkit-backdrop-filter: blur(26px) saturate(1.08);
  z-index: 4;
}

.timeline-content-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 27%, rgba(184, 122, 132, 0.13) 27.1% 27.3%, transparent 27.4%),
    radial-gradient(circle at 18% 45%, rgba(255, 255, 255, 0.62), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(244, 233, 230, 0.42), transparent 28%);
  pointer-events: none;
  z-index: 0;
}

.timeline-card-glow {
  z-index: 1;
  background: radial-gradient(
    circle 360px at var(--mouse-x, -999px) var(--mouse-y, -999px),
    rgba(184, 122, 132, 0.16) 0%,
    rgba(184, 122, 132, 0.05) 45%,
    transparent 80%
  );
}

.timeline-panel-layout {
  grid-template-columns: minmax(180px, 230px) 1fr;
  gap: clamp(34px, 5vw, 58px);
}

.timeline-panel-aside {
  border-right-color: rgba(184, 122, 132, 0.13);
  padding-right: clamp(24px, 4vw, 38px);
}

.timeline-panel-main {
  max-width: 670px;
}

.timeline-emblem-wrapper {
  width: 116px;
  height: 116px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: radial-gradient(circle at 50% 38%, #ffffff 0 48%, rgba(255, 255, 255, 0.62) 49% 100%);
  box-shadow: 0 28px 60px rgba(58, 46, 43, 0.08), 0 0 44px rgba(255, 255, 255, 0.8);
}

.timeline-emblem {
  color: #b87a84;
}

.timeline-duration-badge {
  color: #6d625f;
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(184, 122, 132, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.panel-step-indicator {
  color: #bc7d88;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.panel-step-title {
  color: #3a2e2b;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: 0;
}

.panel-step-text {
  max-width: 670px;
  color: #746966;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.72;
}

.timeline-dock-container {
  margin-top: 30px;
}

.timeline-dock {
  gap: 18px;
  padding: 9px 20px 9px 10px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 50px rgba(58, 46, 43, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.dock-play-btn {
  width: 42px;
  height: 42px;
  background: #b87a84;
  box-shadow: 0 10px 24px rgba(184, 122, 132, 0.26);
}

.dock-progress-track {
  width: 156px;
  background: rgba(184, 122, 132, 0.13);
}

.dock-progress-fill {
  background: linear-gradient(90deg, #b87a84, #e7bdc3);
}

body.calm-mode .timeline-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(96, 61, 73, 0.56) 0 88px, transparent 89px),
    radial-gradient(circle at 88% 82%, rgba(54, 86, 76, 0.36) 0 118px, transparent 119px),
    linear-gradient(180deg, #1f1920 0%, #241c25 100%);
}

body.calm-mode .timeline-section .section-title,
body.calm-mode .panel-step-title {
  color: #fff7f0 !important;
}

body.calm-mode .timeline-section .section-description,
body.calm-mode .panel-step-text,
body.calm-mode .dot-label {
  color: rgba(244, 232, 228, 0.72) !important;
}

body.calm-mode .timeline-bg-year-layer {
  color: #fff6f0;
  opacity: 0.05;
  text-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

body.calm-mode .timeline-content-card {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(47, 39, 49, 0.82), rgba(37, 29, 38, 0.62)),
    radial-gradient(circle at 22% 50%, rgba(255, 255, 255, 0.08), transparent 36%);
  box-shadow: 0 38px 96px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.calm-mode .timeline-content-card::before {
  background:
    linear-gradient(90deg, transparent 0 27%, rgba(230, 194, 199, 0.1) 27.1% 27.3%, transparent 27.4%),
    radial-gradient(circle at 18% 45%, rgba(255, 255, 255, 0.08), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(230, 194, 199, 0.08), transparent 28%);
}

body.calm-mode .timeline-line-bg {
  background: linear-gradient(90deg, rgba(230, 194, 199, 0.12), rgba(230, 194, 199, 0.36), rgba(230, 194, 199, 0.12));
}

body.calm-mode .timeline-line-progress,
body.calm-mode .dock-progress-fill {
  background: linear-gradient(90deg, #e6c2c7, #efe5c8);
}

body.calm-mode .timeline-nav-dot::before {
  background: rgba(34, 27, 35, 0.88);
  border-color: rgba(230, 194, 199, 0.28);
  box-shadow: 0 0 0 6px rgba(34, 27, 35, 0.85), 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.calm-mode .timeline-nav-dot.active::before {
  background: #e6c2c7;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 0 0 8px rgba(230, 194, 199, 0.16), 0 16px 32px rgba(0, 0, 0, 0.28);
}

body.calm-mode .dot-num,
body.calm-mode .dock-step-info {
  color: #fff7f0;
}

body.calm-mode .timeline-nav-dot.active .dot-num,
body.calm-mode .panel-step-indicator,
body.calm-mode .timeline-emblem {
  color: #e6c2c7 !important;
}

body.calm-mode .timeline-emblem-wrapper,
body.calm-mode .timeline-dock {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.calm-mode .timeline-duration-badge {
  background: rgba(230, 194, 199, 0.1);
  border-color: rgba(230, 194, 199, 0.18);
  color: rgba(244, 232, 228, 0.82) !important;
}

@media (max-width: 768px) {
  .timeline-section .section-title {
    font-size: clamp(36px, 10vw, 52px);
  }

  .timeline-container {
    min-height: 0;
    margin-top: 42px;
  }

  .timeline-container::before {
    top: 92px;
    height: 260px;
  }

  .timeline-bg-year-container {
    top: 84px;
    height: 260px;
  }

  .timeline-bg-year-layer {
    top: 44%;
    font-size: clamp(118px, 42vw, 190px);
    opacity: 0.06;
  }

  .timeline-nav-wrapper {
    width: 100%;
    margin-bottom: 30px;
    padding: 6px 0 16px;
    overflow: visible;
  }

  .timeline-nav-dots {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .timeline-nav-dot {
    min-height: auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
  }

  .timeline-line-bg {
    display: block;
    top: 18px;
    left: 10%;
    right: 10%;
  }

  .timeline-line-progress {
    top: 18px;
    left: 10%;
  }

  .timeline-nav-dot::before {
    width: 16px;
    height: 16px;
  }

  .timeline-nav-dot.active::before {
    width: 20px;
    height: 20px;
  }

  .dot-num {
    font-size: 11px;
  }

  .dot-label {
    display: none;
  }

  .timeline-content-card {
    width: 100%;
    min-height: auto;
    padding: 28px 22px 30px;
    border-radius: 32px;
  }

  .timeline-content-card::before {
    background:
      linear-gradient(180deg, transparent 0 31%, rgba(184, 122, 132, 0.12) 31.1% 31.4%, transparent 31.5%),
      radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.86), transparent 26%),
      radial-gradient(circle at 88% 12%, rgba(244, 233, 230, 0.58), transparent 28%);
  }

  .timeline-panel-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline-panel-aside {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(184, 122, 132, 0.14);
    padding: 0 0 24px;
  }

  .timeline-emblem-wrapper {
    width: 84px;
    height: 84px;
  }

  .panel-step-title {
    font-size: clamp(30px, 8.4vw, 38px);
  }

  .panel-step-text {
    font-size: 17px;
    line-height: 1.68;
  }

  .timeline-dock {
    max-width: 100%;
  }

  .dock-progress-track {
    width: min(120px, 30vw);
  }
}

/* Keep the redesigned journey section crisp above the calm-mode sky overlay. */
.timeline-bg-year-layer {
  font-size: clamp(230px, 34vw, 480px);
  opacity: 0.13;
}

body.calm-mode .timeline-section {
  z-index: 8100;
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 216, 218, 0.82) 0 82px, transparent 83px),
    radial-gradient(circle at 86% 82%, rgba(221, 233, 225, 0.76) 0 118px, transparent 119px),
    linear-gradient(180deg, #fbfaf8 0%, #f8f4f1 100%);
}

body.calm-mode .timeline-section .section-title,
body.calm-mode .panel-step-title,
body.calm-mode .dot-num,
body.calm-mode .dock-step-info {
  color: #342926 !important;
}

body.calm-mode .timeline-section .section-description,
body.calm-mode .panel-step-text,
body.calm-mode .dot-label {
  color: #756b67 !important;
}

body.calm-mode .timeline-content-card p,
body.calm-mode .timeline-content-card .panel-step-text,
body.calm-mode .timeline-panel-main .panel-step-text {
  color: #746966 !important;
}

body.calm-mode .timeline-bg-year-layer {
  color: #342926;
  opacity: 0.13;
  text-shadow: 0 26px 56px rgba(58, 46, 43, 0.12);
}

body.calm-mode .timeline-content-card {
  border-color: rgba(255, 255, 255, 0.82) !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.46)),
    radial-gradient(circle at 22% 50%, rgba(255, 255, 255, 0.54), transparent 36%) !important;
  box-shadow: 0 34px 90px rgba(58, 46, 43, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.calm-mode .timeline-content-card::before {
  background:
    linear-gradient(90deg, transparent 0 27%, rgba(184, 122, 132, 0.13) 27.1% 27.3%, transparent 27.4%),
    radial-gradient(circle at 18% 45%, rgba(255, 255, 255, 0.62), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(244, 233, 230, 0.42), transparent 28%);
}

body.calm-mode .timeline-line-bg {
  background: linear-gradient(90deg, rgba(184, 122, 132, 0.18), rgba(184, 122, 132, 0.36), rgba(184, 122, 132, 0.18));
}

body.calm-mode .timeline-line-progress,
body.calm-mode .dock-progress-fill {
  background: linear-gradient(90deg, #b87a84, #e7bdc3);
}

body.calm-mode .timeline-nav-dot::before {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(184, 122, 132, 0.34);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.82), 0 8px 20px rgba(58, 46, 43, 0.08);
}

body.calm-mode .timeline-nav-dot.active::before {
  background: #b87a84;
  border-color: #f1d8dc;
  box-shadow: 0 0 0 8px rgba(184, 122, 132, 0.15), 0 14px 28px rgba(184, 122, 132, 0.24);
}

body.calm-mode .timeline-nav-dot.active .dot-num,
body.calm-mode .panel-step-indicator,
body.calm-mode .timeline-emblem {
  color: #b87a84 !important;
}

body.calm-mode .timeline-emblem-wrapper,
body.calm-mode .timeline-dock {
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(255, 255, 255, 0.82) !important;
  box-shadow: 0 20px 50px rgba(58, 46, 43, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

body.calm-mode .timeline-duration-badge {
  background: rgba(255, 255, 255, 0.64);
  border-color: rgba(184, 122, 132, 0.16);
  color: #6d625f !important;
}

.whatsapp-float-btn,
.locate-wrap {
  z-index: 9002;
}

/* =====================================================================
   Jornada — borboleta viajante + trilha turbinada + ano de fundo
   ===================================================================== */

/* Trilha: mais presente, com leve relevo */
.timeline-line-bg {
  height: 3px !important;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(156, 100, 113, 0.12),
    rgba(156, 100, 113, 0.28),
    rgba(156, 100, 113, 0.12)) !important;
}
body.calm-mode .timeline-line-bg {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.06)) !important;
}

/* Progresso: gradiente vivo + brilho deslizante */
.timeline-line-progress {
  height: 3px !important;
  border-radius: 999px;
  background: linear-gradient(90deg, #c98b95, var(--color-rose), #e9c0c5) !important;
  box-shadow: 0 0 10px rgba(184, 122, 132, 0.5), 0 0 20px rgba(184, 122, 132, 0.25) !important;
  overflow: hidden;
  transition: width 0.85s cubic-bezier(0.34, 1.1, 0.5, 1) !important;
}
.timeline-line-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  animation: tlProgShimmer 2.2s linear infinite;
}
@keyframes tlProgShimmer {
  0%   { background-position: -60% 0; }
  100% { background-position: 160% 0; }
}

/* Borboleta que viaja pela linha do tempo */
.timeline-butterfly {
  position: absolute;
  top: 17px;
  left: 10%;
  transform: translate(-50%, -62%);
  z-index: 5;
  pointer-events: none;
  transition: left 0.85s cubic-bezier(0.34, 1.4, 0.5, 1);
  will-change: left;
}
.timeline-butterfly img {
  display: block;
  width: 46px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(184, 122, 132, 0.4));
  transform-origin: center bottom;
  animation: tlButterflyIdle 3.6s ease-in-out infinite;
}
@keyframes tlButterflyIdle {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(3deg); }
}
.timeline-butterfly.is-flying img {
  animation: tlButterflyFly 0.36s ease-in-out infinite;
}
@keyframes tlButterflyFly {
  0%, 100% { transform: translateY(-3px) rotate(-9deg) scale(1.06); }
  50%      { transform: translateY(-10px) rotate(9deg) scale(1.12); }
}
/* Arco de voo: sobe um pouco enquanto viaja */
.timeline-butterfly.is-flying {
  transform: translate(-50%, -110%);
}

/* Rastro de brilho deixado pela borboleta */
.tl-spark {
  position: absolute;
  top: 17px;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 220, 180, 0.9), rgba(184, 122, 132, 0.4) 55%, transparent 72%);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  animation: tlSparkPop 700ms ease-out forwards;
}
@keyframes tlSparkPop {
  0%   { opacity: 0.9; transform: scale(0.4) translateY(0); }
  100% { opacity: 0;   transform: scale(1.5) translateY(-10px); }
}

/* Ano de fundo um pouco mais presente + tom da marca */
.timeline-bg-year-layer {
  opacity: 0.07;
  background: linear-gradient(180deg, var(--color-ink), rgba(184, 122, 132, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
body.calm-mode .timeline-bg-year-layer {
  opacity: 0.12;
  background: linear-gradient(180deg, #ffffff, rgba(230, 194, 199, 0.8));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Dot ativo com um anel de respiro extra */
.timeline-nav-dot.active .dot-num {
  text-shadow: 0 0 14px rgba(184, 122, 132, 0.35);
}

@media (max-width: 640px) {
  .timeline-butterfly img { width: 34px; }
}

/* ---------- Ano gigante de fundo: bem presente + respirando + shimmer ---------- */
.timeline-bg-year-layer {
  top: 44%;
  left: 50%; /* centralizado (o JS também mantém em 50% pra nunca cortar) */
  opacity: 0.5;
  /* GRANDE e centralizado: cabe na largura (nunca corta) e aparece ATRAVÉS do card */
  font-size: clamp(260px, 42vw, 620px);
  /* sem filter/drop-shadow: re-renderizava a cada frame da respiração (peso). */
  background: linear-gradient(110deg,
    var(--color-ink) 0%, var(--color-ink) 36%,
    #d99aa4 48%, #f3d8d4 50%, #d99aa4 52%,
    var(--color-ink) 64%, var(--color-ink) 100%);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* SEM animação contínua aqui: texto gigante + clip + backdrop-blur do card
     atrás = re-render 60fps que congela a GPU. Mantém estático e presente. */
}
body.calm-mode .timeline-bg-year-layer {
  opacity: 0.62;
  background: linear-gradient(110deg,
    #ffffff 0%, #ffffff 36%,
    #ffe7d6 48%, #ffffff 50%, #ffe7d6 52%,
    #ffffff 64%, #ffffff 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@keyframes tlYearShimmer {
  0%   { background-position: 140% 0; }
  100% { background-position: -140% 0; }
}

/* Animação LEVE do ano: respiração (escala + brilho) + um pulso de glow.
   Só transform/opacity/filter compostos na GPU — barato. */
.timeline-bg-year-container {
  animation: tlYearBreathe 7s ease-in-out infinite;
}
@keyframes tlYearBreathe {
  0%, 100% { transform: translateX(-50%) scale(1);      opacity: 0.78; }
  50%      { transform: translateX(-50%) scale(1.06);   opacity: 1; }
}

/* Card de vidro: desfoque leve (8px) + fundo mais translúcido pra o ANO GIGANTE
   aparecer através dele como watermark elegante. */
.timeline-content-card {
  /* SEM backdrop-filter: o desfoque recalculava a cada frame com o ano animando
     atrás (pesado/travava). Card translúcido sólido deixa o ano aparecer e é leve. */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(255, 255, 255, 0.82) !important;
}
body.calm-mode #timeline-card.timeline-content-card,
body.calm-mode #timeline-card {
  background: linear-gradient(135deg, rgba(46, 39, 48, 0.86), rgba(36, 30, 40, 0.82)) !important;
}

/* ---------- Destaque do ano ATIVO (onde a borboleta está) ---------- */
.timeline-nav-dot .dot-num {
  transition: font-size 0.45s var(--ease), color 0.3s var(--ease),
              transform 0.45s var(--ease), text-shadow 0.3s var(--ease);
}
.timeline-nav-dot.active .dot-num {
  font-size: 22px;
  color: var(--color-rose);
  transform: translateY(-2px) scale(1.04);
  text-shadow: 0 0 18px rgba(184, 122, 132, 0.45);
}
.timeline-nav-dot.active .dot-label {
  color: var(--color-ink);
  font-weight: 800;
}
/* Nó ativo um pouco maior, com mais brilho */
.timeline-nav-dot.active::before {
  width: 20px !important;
  height: 20px !important;
  box-shadow: 0 0 0 7px rgba(184, 122, 132, 0.16),
              0 0 18px 3px rgba(184, 122, 132, 0.4),
              0 8px 18px rgba(184, 122, 132, 0.3) !important;
}
body.calm-mode .timeline-nav-dot.active::before {
  box-shadow: 0 0 0 7px rgba(230, 194, 199, 0.18),
              0 0 18px 3px rgba(230, 194, 199, 0.45),
              0 8px 18px rgba(230, 194, 199, 0.35) !important;
}

/* O card "sai de dentro" do ano ativo: conector com brilho que funde no card */
.timeline-connector {
  height: 48px;
  bottom: -48px;
}
.timeline-connector::after {
  width: 14px;
  height: 14px;
  bottom: -5px;
  border-radius: 4px;
  box-shadow: 0 0 18px 5px rgba(184, 122, 132, 0.45);
}
body.calm-mode .timeline-connector::after {
  box-shadow: 0 0 18px 5px rgba(230, 194, 199, 0.5);
}
/* O card NASCE da borboleta: escala a partir do ponto dela (origin via JS) */
.timeline-content-card.is-switching {
  animation: tlCardEmerge 680ms cubic-bezier(0.34, 1.25, 0.5, 1);
}
@keyframes tlCardEmerge {
  0%   { opacity: 0;    transform: translateY(-34px) scale(0.965); }
  55%  { opacity: 1; }
  100% { opacity: 1;    transform: translateY(0) scale(1); }
}

/* ---------- Card: conteúdo entra em sequência (stagger) ---------- */
.timeline-panel.active .panel-step-indicator { animation: tlItemIn 0.5s var(--ease) 0.08s both; }
.timeline-panel.active .panel-step-title     { animation: tlItemIn 0.55s var(--ease) 0.18s both; }
.timeline-panel.active .panel-step-text      { animation: tlItemIn 0.55s var(--ease) 0.30s both; }
@keyframes tlItemIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Emblema com brilho pulsante (além do float que já existe) */
.timeline-panel.active .timeline-emblem-wrapper {
  animation: float 6s ease-in-out infinite, tlEmblemGlow 3.2s ease-in-out infinite;
}
@keyframes tlEmblemGlow {
  0%, 100% { box-shadow: 0 16px 36px rgba(184, 122, 132, 0.18), 0 0 0 0 rgba(184, 122, 132, 0); }
  50%      { box-shadow: 0 16px 40px rgba(184, 122, 132, 0.30), 0 0 0 10px rgba(184, 122, 132, 0.07); }
}
body.calm-mode .timeline-panel.active .timeline-emblem-wrapper {
  animation: float 6s ease-in-out infinite, tlEmblemGlowDark 3.2s ease-in-out infinite;
}
@keyframes tlEmblemGlowDark {
  0%, 100% { box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(230, 194, 199, 0); }
  50%      { box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(230, 194, 199, 0.12); }
}

/* Borda gradiente sutil que percorre o card ao trocar de etapa */
.timeline-content-card { position: relative; }
.timeline-content-card.is-switching {
  /* usa a animação "nasce da borboleta" (tlCardEmerge), definida mais abaixo */
  animation: tlCardEmerge 680ms cubic-bezier(0.34, 1.25, 0.5, 1);
}
@keyframes tlCardPulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 122, 132, 0); }
  35%  { box-shadow: 0 0 0 3px rgba(184, 122, 132, 0.18), 0 20px 50px rgba(184, 122, 132, 0.12); }
  100% { box-shadow: 0 0 0 0 rgba(184, 122, 132, 0); }
}

/* ---------- Conector animado entre a linha do tempo e o card ---------- */
.timeline-connector {
  position: absolute;
  left: 10%;
  bottom: -42px;
  width: 2px;
  height: 42px;
  transform: translateX(-50%);
  transform-origin: top center;
  background: linear-gradient(180deg, rgba(184, 122, 132, 0.9), rgba(184, 122, 132, 0.05));
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.9;
  transition: left 0.85s cubic-bezier(0.34, 1.4, 0.5, 1);
}
.timeline-connector::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-rose);
  box-shadow: 0 0 12px 2px rgba(184, 122, 132, 0.6);
}
.timeline-connector::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: rgba(184, 122, 132, 0.95);
  box-shadow: 0 0 10px rgba(184, 122, 132, 0.55);
}
body.calm-mode .timeline-connector {
  background: linear-gradient(180deg, rgba(230, 194, 199, 0.95), rgba(230, 194, 199, 0.05));
}
body.calm-mode .timeline-connector::before { background: #e6c2c7; box-shadow: 0 0 12px 2px rgba(230, 194, 199, 0.6); }
body.calm-mode .timeline-connector::after { background: #e6c2c7; box-shadow: 0 0 10px rgba(230, 194, 199, 0.5); }
.timeline-connector.is-pulsing {
  animation: tlConnPulse 700ms var(--ease);
}
@keyframes tlConnPulse {
  0%   { transform: translateX(-50%) scaleY(0.25); opacity: 0.4; filter: brightness(1.7); }
  60%  { opacity: 1; filter: brightness(1.3); }
  100% { transform: translateX(-50%) scaleY(1); opacity: 0.9; filter: brightness(1); }
}

@media (max-width: 760px) {
  .timeline-connector { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-butterfly,
  .timeline-butterfly img,
  .timeline-line-progress::after,
  .tl-spark,
  .timeline-bg-year-layer,
  .timeline-bg-year-container,
  .timeline-panel.active .panel-step-indicator,
  .timeline-panel.active .panel-step-title,
  .timeline-panel.active .panel-step-text,
  .timeline-panel.active .timeline-emblem-wrapper,
  .timeline-connector,
  .timeline-connector.is-pulsing,
  .timeline-content-card.is-switching {
    animation: none !important;
    transition: none !important;
  }
}

/* =====================================================================
   Jornada no MODO CALMO — card escuro, textos legíveis, seção integrada
   ===================================================================== */
/* Card de vidro escuro (sobrescreve o gradiente claro vindo de outra edição) */
body.calm-mode #timeline-card.timeline-content-card,
body.calm-mode #timeline-card {
  background: linear-gradient(135deg, rgba(50, 43, 53, 0.64), rgba(38, 32, 42, 0.56)) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45) !important;
}
/* Textos do card legíveis no escuro */
body.calm-mode .timeline-content-card .panel-step-title { color: #ffffff !important; }
body.calm-mode .timeline-content-card .panel-step-indicator { color: var(--color-rose) !important; }
body.calm-mode .timeline-content-card .panel-step-text { color: #e4dade !important; }
body.calm-mode .timeline-panel-aside { border-right-color: rgba(255, 255, 255, 0.12) !important; }
body.calm-mode .timeline-emblem svg { stroke: #f3d8d4 !important; }
/* Remove os pontos claros fixos do fundo da seção no calmo (deixa o fundo escuro do tema) */
body.calm-mode .timeline-section { background-image: none !important; background-color: transparent !important; }
/* Linha base da trilha mais visível sobre o escuro */
body.calm-mode .timeline-line-bg {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.08)) !important;
}
body.calm-mode .timeline-nav-dot .dot-num { color: #cfc3c5; }
body.calm-mode .timeline-nav-dot.active .dot-num { color: var(--color-rose) !important; }
body.calm-mode .timeline-nav-dot.active .dot-label { color: #ffffff !important; }
body.calm-mode .timeline-nav-dot .dot-label { color: #a99ea0; }

/* =====================================================================
   Bolinhas decorativas do fundo — padronizadas e proporcionais
   (tamanho e opacidade consistentes, suaves; sem círculos gigantes cortados)
   ===================================================================== */
.section-bg-shapes .shape {
  width: 300px !important;
  height: 300px !important;
  opacity: 1 !important;            /* intensidade controlada pela alpha do gradiente */
  filter: none !important;
  border-radius: 50% !important;    /* blob e circle viram o mesmo glow redondo = uniforme */
  /* Glow rosa suave e UNIFORME que esvanece pro transparente. Como some na borda,
     NÃO aparece "cortado" mesmo encostando no limite da seção. Mesmo tom em todas. */
  background: radial-gradient(circle, rgba(231, 196, 201, 0.30), rgba(231, 196, 201, 0) 70%) !important;
}
/* As marcadas como menores (no rodapé) seguem discretas */
.main-footer .section-bg-shapes .shape {
  width: 150px !important;
  height: 150px !important;
  opacity: 0.18 !important;
}
@media (max-width: 640px) {
  .section-bg-shapes .shape { width: 130px !important; height: 130px !important; }
}

/* (animação antiga de "entrega" desativada — agora a borboleta pousa no nó da curva) */

/* =====================================================================
   TIMELINE EM CURVA ONDULADA (inspirado no vídeo) + barra de progresso
   ===================================================================== */
.timeline-nav-wrapper {
  position: relative !important;
  height: 188px !important;
  max-width: min(960px, 100%) !important;
  margin: 10px auto 34px !important;
  padding: 0 !important;
  overflow: visible !important;
  z-index: 3;
}

/* A curva (SVG) */
.timeline-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 160px;
  overflow: visible;
  pointer-events: none;
}
.timeline-wave path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.wave-bg { stroke: rgba(156, 100, 113, 0.22); }
.wave-progress {
  stroke: url(#waveGrad);
  filter: drop-shadow(0 2px 6px rgba(184, 122, 132, 0.5));
  /* preenchimento controlado por dasharray/dashoffset via JS */
  transition: stroke-dashoffset 0.9s cubic-bezier(0.34, 1.05, 0.5, 1);
}
body.calm-mode .wave-bg { stroke: rgba(255, 255, 255, 0.16); }

/* Nós posicionados ao longo da onda */
.timeline-nav-dots {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  grid-template-columns: none !important;
}
.timeline-nav-dot {
  position: absolute !important;
  transform: translate(-50%, -50%);
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  display: block !important;
  cursor: pointer;
}
.timeline-nav-dot:nth-child(1) { left: 10%; top: 55px; }
.timeline-nav-dot:nth-child(2) { left: 30%; top: 100px; }
.timeline-nav-dot:nth-child(3) { left: 50%; top: 68px; }
.timeline-nav-dot:nth-child(4) { left: 70%; top: 100px; }
.timeline-nav-dot:nth-child(5) { left: 90%; top: 55px; }

/* Marcador circular sobre a onda — usa .node-dot (classe nova, sem conflito
   com as regras ::before antigas/duplicadas). O ::before antigo é desligado. */
.timeline-nav-dot::before { display: none !important; }
.timeline-nav-dot .node-dot {
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--color-rose);
  box-shadow: 0 3px 8px rgba(184, 122, 132, 0.3);
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
              background 0.4s var(--ease), box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
  position: relative;
  z-index: 2;
}
.timeline-nav-dot:hover .node-dot { transform: scale(1.15); }
body.calm-mode .timeline-nav-dot .node-dot {
  background: #2a232c;
  border-color: var(--color-rose);
}

/* Nó ATIVO: círculo grande preenchido (a borboleta pousa nele) */
.timeline-nav-dot.active .node-dot {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #c98b95, #9c6670);
  border-color: transparent;
  box-shadow: 0 0 0 7px rgba(184, 122, 132, 0.14),
              0 12px 26px rgba(184, 122, 132, 0.4);
  animation: tlNodePulse 2.4s ease-in-out infinite;
}
body.calm-mode .timeline-nav-dot.active .node-dot {
  background: linear-gradient(135deg, #e6c2c7, #b87a84);
}
@keyframes tlNodePulse {
  0%, 100% { box-shadow: 0 0 0 7px rgba(184, 122, 132, 0.14), 0 12px 26px rgba(184, 122, 132, 0.4); }
  50%      { box-shadow: 0 0 0 12px rgba(184, 122, 132, 0), 0 12px 26px rgba(184, 122, 132, 0.45); }
}

/* Rótulos (ano + nome) abaixo do nó */
.timeline-nav-dot .dot-num,
.timeline-nav-dot .dot-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  display: block !important;
}
.timeline-nav-dot .dot-num { top: 16px; }
.timeline-nav-dot .dot-label { top: 35px; }
.timeline-nav-dot.active .dot-num { top: 42px; }
.timeline-nav-dot.active .dot-label { top: 61px; }

/* Borboleta pousa no nó ativo (segue a onda) */
.timeline-butterfly {
  position: absolute;
  left: 10%;
  top: 55px;
  transform: translate(-50%, -64%);
  z-index: 5;
  pointer-events: none;
  transition: left 0.9s cubic-bezier(0.34, 1.3, 0.5, 1), top 0.9s cubic-bezier(0.34, 1.3, 0.5, 1);
  will-change: left, top;
}
.timeline-butterfly img {
  display: block;
  width: 50px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(184, 122, 132, 0.45));
  transform-origin: center bottom;
  animation: tlButterflyIdle 3.6s ease-in-out infinite;
}
@media (max-width: 640px) {
  .timeline-butterfly img { width: 38px; }
  .timeline-nav-dot .dot-num { font-size: 11px; }
  .timeline-nav-dot .dot-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-nav-dot.active .node-dot { animation: none !important; }
  .timeline-butterfly { transition: none !important; }
}

/* =====================================================================
   JORNADA — refatoração premium (Apple-like). Namespaced .jrn-* para
   não conflitar com o CSS antigo .timeline-*.
   ===================================================================== */
.jrn {
  --jbg: #fbf8f5;
  --jtext: #342725;
  --jmuted: #766c68;
  --jrose: #c87888;
  --jrose-soft: #ead2d6;
  --jsage: #dfeee8;
  --jwarm: #9e9894;
  --jline: rgba(190, 150, 158, 0.28);
  --jglass: rgba(255, 255, 255, 0.66);
  --jease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100vh, 940px);
  padding: clamp(72px, 9vh, 120px) 0 clamp(80px, 10vh, 130px);
  background: var(--jbg);
  overflow: hidden;
  isolation: isolate;
}

/* Decoração mínima */
.jrn-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  /* sem blur(70px): nitidez ("resolução boa") + perf. O gradiente já esfuma. */
}
.jrn-orb-rose {
  width: 260px; height: 260px;
  top: 36px; left: 36px;
  background: radial-gradient(circle, rgba(231, 196, 201, 0.50), transparent 68%);
}
.jrn-orb-sage {
  width: 260px; height: 260px;
  bottom: 36px; right: 36px;
  background: radial-gradient(circle, rgba(159, 217, 199, 0.45), transparent 68%);
}

/* Número 3D translúcido (vidro/acrílico) no fundo */
.jrn-yearbg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.jrn-year {
  font-family: var(--font-label), "Montserrat", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(260px, 44vw, 720px);
  line-height: 0.78;
  letter-spacing: -0.03em;
  background: linear-gradient(176deg, #ffffff 0%, #f0e2e2 32%, #d8c6c5 64%, #bcacaa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* profundidade via text-shadow (bem mais barato que filter drop-shadow num
     texto gigante — evita travar a pintura/scroll) */
  text-shadow:
    0 2px 1px rgba(255, 255, 255, 0.7),
    0 -1px 1px rgba(170, 140, 145, 0.18),
    0 22px 40px rgba(120, 92, 96, 0.12);
  opacity: 0.6;
  transform: perspective(1300px) rotateX(11deg);
  transition: opacity 0.7s var(--jease), transform 0.8s var(--jease);
  will-change: opacity, transform;
}
.jrn-year.is-changing {
  opacity: 0;
  transform: perspective(1300px) rotateX(11deg) scale(0.92) translateY(14px);
}
/* Brilho atrás do número — SÓ opacidade (o número NÃO se mexe; sem escala/translate) */
.jrn-year-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(640px, 62vw); height: min(640px, 62vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 120, 136, 0.22), rgba(200, 120, 136, 0) 64%);
  pointer-events: none;
  z-index: 0;
  animation: jrnYearGlow 5s ease-in-out infinite;
}
@keyframes jrnYearGlow {           /* respira só na opacidade — nada se move */
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.8; }
}
/* Reage ao navegar: o brilho dá um "flash" (só opacidade, sem movimento) */
.jrn-year-glow.is-burst { animation: jrnYearBurst 0.9s ease-out; }
@keyframes jrnYearBurst {
  0%   { opacity: 1; }
  100% { opacity: 0.45; }
}
/* Shimmer: uma luz diagonal varre atrás do número (número parado, a luz que passa) */
.jrn-yearbg::before {
  content: "";
  position: absolute;
  top: 8%; bottom: 8%;
  left: -32%;
  width: 28%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  filter: blur(9px);
  pointer-events: none;
  z-index: 0;
  animation: jrnShimmer 7.5s ease-in-out infinite;
}
@keyframes jrnShimmer {
  0%        { left: -32%; opacity: 0; }
  14%       { opacity: 0.85; }
  56%       { opacity: 0.85; }
  72%, 100% { left: 116%; opacity: 0; }
}

/* Inner / cabeçalho */
.jrn-inner {
  position: relative;
  z-index: 3;
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}
.jrn-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vh, 54px); }
.jrn-title {
  margin: 0;
  font-family: var(--font-heading), "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.01em;
  color: var(--jtext);
}
.jrn-sub {
  max-width: 600px;
  margin: 16px auto 0;
  color: var(--jmuted);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(14.5px, 1.3vw, 17px);
  line-height: 1.72;
}

/* Timeline curva */
.jrn-timeline {
  position: relative;
  height: 232px;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}
.jrn-wave {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 200px;
  overflow: visible;
}
.jrn-wave-bg, .jrn-wave-fill {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.jrn-wave-bg { stroke: rgba(190, 150, 158, 0.30); }
.jrn-wave-fill {
  stroke: url(#jrnWaveGrad);
  filter: drop-shadow(0 2px 6px rgba(200, 120, 136, 0.30));
  transition: stroke-dashoffset 0.9s var(--jease);
}

.jrn-nodes { position: absolute; inset: 0; }
.jrn-node {
  position: absolute;
  width: 0; height: 0;
  border: 0; padding: 0; margin: 0;
  background: none;
  cursor: pointer;
}
.jrn-node::before { /* área de clique generosa */
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 64px; height: 86px;
  transform: translate(-50%, -50%);
}
.jrn-node-dot {
  position: absolute;
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--jrose);
  box-shadow: 0 3px 9px rgba(200, 120, 136, 0.28);
  transition: width 0.5s var(--jease), height 0.5s var(--jease),
              background 0.5s var(--jease), box-shadow 0.5s var(--jease),
              border-color 0.5s var(--jease);
  z-index: 2;
}
.jrn-node:hover .jrn-node-dot { transform: translate(-50%, -50%) scale(1.18); }
/* Etapa CONCLUÍDA: preenchida (sólida), diferente da inativa (vazada) e da ativa (grande) */
.jrn-node.is-done .jrn-node-dot {
  width: 20px; height: 20px;
  background: var(--jrose);
  border-color: var(--jrose);
  box-shadow: 0 3px 10px rgba(200, 120, 136, 0.35);
}
.jrn-node.is-active .jrn-node-dot {
  /* sem a "bola" 3D: ponto discreto — quem indica o ano ativo é a borboleta + o glow no ano */
  width: 22px; height: 22px;
  background: var(--jrose);
  border-color: var(--jrose);
  box-shadow: 0 4px 12px rgba(200, 120, 136, 0.42);
}
.jrn-node-year, .jrn-node-name {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  font-family: "Nunito", system-ui, sans-serif;
  transition: color 0.4s var(--jease), top 0.4s var(--jease), font-size 0.4s var(--jease);
}
.jrn-node-year { top: 16px; font-weight: 800; font-size: 14px; color: var(--jwarm); letter-spacing: 0.01em; }
.jrn-node-name { top: 35px; font-size: 11.5px; font-weight: 600; color: var(--jmuted); }
.jrn-node.is-active .jrn-node-year { top: 30px; font-size: 17px; color: var(--jrose); }
.jrn-node.is-active .jrn-node-name { top: 50px; color: var(--jtext); }

/* Borboleta indicadora: posicionada por JS sobre a curva, no ano ativo */
.jrn-butterfly {
  position: absolute;
  left: 0; top: 0;                  /* JS define left/top (px) ao longo da curva */
  width: 52px; height: 52px;
  transform: translate(-50%, -64%); /* centra no ponto, pousando logo acima do nó */
  z-index: 6;
  pointer-events: none;
}
/* 2026: vira a borboleta do quebra-cabeça do autismo, com um "pop" de revelação */
.jrn-butterfly.is-puzzle { width: 62px; }
.jrn-butterfly.is-puzzle img {
  animation: jrnPuzzlePop 0.72s cubic-bezier(0.34, 1.56, 0.64, 1) both,
             jrnBfFloat 3.4s ease-in-out 0.72s infinite;
}
@keyframes jrnPuzzlePop {
  0%   { transform: scale(0.2) rotate(-180deg); opacity: 0.2; }
  55%  { transform: scale(1.22) rotate(12deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}
/* Anel de luz que estoura na transformação (reaproveita o halo) */
.jrn-butterfly.is-puzzle .jrn-bf-halo {
  animation: jrnMorphBurst 0.72s ease-out;
}
@keyframes jrnMorphBurst {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 0.95; }
  100% { transform: translate(-50%, -50%) scale(3.2); opacity: 0; }
}
/* Bater de asas enquanto voa entre os anos */
.jrn-butterfly.is-flying img {
  animation: jrnFlap 0.16s ease-in-out infinite;
}
@keyframes jrnFlap {
  0%, 100% { transform: scaleX(1) rotate(0deg); }
  50%      { transform: scaleX(0.72) rotate(-5deg); }
}
/* 2026: voa DE VERDADE pra fora da tela (viaja longe; só some na borda, não no meio) */
.jrn-butterfly.is-flyaway {
  animation: jrnFlyAway 1.7s cubic-bezier(0.42, 0, 0.7, 0.15) forwards;
}
@keyframes jrnFlyAway {
  0%   { transform: translate(-50%, -64%) translate(0, 0) scale(1) rotate(0); opacity: 1; }
  78%  { opacity: 1; }
  100% { transform: translate(-50%, -64%) translate(48vw, -78vh) scale(0.5) rotate(26deg); opacity: 0; }
}
/* Volta voando pra dentro (ao retroceder o ano), já destransformada */
.jrn-butterfly.is-returning {
  animation: jrnFlyIn 1s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes jrnFlyIn {
  0%   { transform: translate(-50%, -64%) translate(46vw, -74vh) scale(0.5) rotate(24deg); opacity: 0; }
  100% { transform: translate(-50%, -64%) translate(0, 0) scale(1) rotate(0); opacity: 1; }
}
/* Estrelinhas que estouram na transformação */
.jrn-sparkle {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 205, 120, 0.95) 45%, transparent 70%);
  pointer-events: none;
  z-index: 7;
  animation: jrnSparkle 0.8s ease-out forwards;
}
@keyframes jrnSparkle {
  0%   { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--dx, 0), var(--dy, 0)) scale(1.1); opacity: 0; }
}
.jrn-butterfly img {
  position: relative;
  display: block;
  width: 100%; height: auto;
  z-index: 2;
  filter: drop-shadow(0 7px 13px rgba(200, 120, 136, 0.42));
  transform-origin: center bottom;
  animation: jrnBfFloat 3.4s ease-in-out infinite;
}
.jrn-bf-halo {
  position: absolute;
  left: 50%; top: 46%;
  width: 76px; height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 201, 0.55), transparent 70%);
  filter: blur(7px);
  z-index: 1;
}
@keyframes jrnBfFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-5px) rotate(3deg); }
}

/* Card glassmorphism */
.jrn-card {
  position: relative;
  z-index: 4;
  width: min(900px, 100%);
  margin: clamp(8px, 2vw, 26px) auto 0;
  display: grid;
  grid-template-columns: 220px 1px minmax(0, 1fr);
  gap: clamp(22px, 3vw, 44px);
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
  background: var(--jglass);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 36px;
  box-shadow: 0 32px 70px rgba(120, 92, 96, 0.12), 0 2px 10px rgba(120, 92, 96, 0.04);
}
.jrn-card.is-switching .jrn-card-main,
.jrn-card.is-switching .jrn-card-aside {
  animation: jrnCardIn 0.6s var(--jease);
}
@keyframes jrnCardIn {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.jrn-card-aside { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.jrn-card-icon {
  width: 96px; height: 96px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff, #f6eae9);
  border: 1px solid rgba(200, 120, 136, 0.18);
  box-shadow: 0 12px 26px rgba(200, 120, 136, 0.16);
  color: var(--jrose);
}
.jrn-card-icon svg { width: 40px; height: 40px; }
/* Foto no lugar do ícone (nó "Infância"): medalhão redondo preenchendo o círculo.
   position:absolute + inset:0 = ocupa EXATAMENTE o círculo de 96px (o track auto do
   grid não resolve height:100%, a foto estourava em elipse). */
.jrn-card-icon { position: relative; overflow: hidden; }
.jrn-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%; /* mira no rostinho (foto vertical, moldura em volta) */
  border-radius: 50%;
  display: block;
}
.jrn-card-badge {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jmuted);
  background: rgba(200, 120, 136, 0.08);
  border: 1px solid rgba(200, 120, 136, 0.18);
  padding: 7px 15px;
  border-radius: 999px;
  text-align: center;
}
.jrn-card-divider { width: 1px; align-self: stretch; background: linear-gradient(180deg, transparent, var(--jline), transparent); }
.jrn-card-cat {
  display: block;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jrose);
}
.jrn-card-title {
  margin: 11px 0 14px;
  font-family: var(--font-heading), "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.14;
  color: var(--jtext);
}
.jrn-card-text {
  margin: 0;
  max-width: 560px;
  color: var(--jmuted);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: clamp(14.5px, 1.35vw, 17px);
  line-height: 1.78;
}

/* ---- Modo calmo (escuro) ---- */
body.calm-mode .jrn {
  --jbg: #181318;
  --jtext: #f1e8e6;
  --jmuted: #b9aaa7;
  --jwarm: #8d8280;
  --jline: rgba(255, 255, 255, 0.12);
  --jglass: rgba(40, 33, 40, 0.55);
  /* nivelado no escuro: fade pro base nas bordas (a jornada era mais escura) */
  background: linear-gradient(180deg, var(--color-paper) 0%, #181318 24%, #181318 76%, var(--color-paper) 100%) !important;
}
body.calm-mode .jrn-year {
  background: linear-gradient(176deg, rgba(255,255,255,0.92) 0%, rgba(230,200,205,0.6) 45%, rgba(150,120,125,0.4) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0.5;
}
body.calm-mode .jrn-year-glow {
  background: radial-gradient(circle, rgba(232, 198, 210, 0.32), rgba(150, 170, 230, 0.10) 45%, transparent 66%);
}
/* Modo noite: shimmer iridescente (rosa -> azul) — mais maneiro no escuro */
body.calm-mode .jrn-yearbg::before {
  background: linear-gradient(105deg, transparent, rgba(255, 236, 246, 0.65), rgba(180, 205, 255, 0.45) 58%, transparent);
  filter: blur(10px);
}
body.calm-mode .jrn-wave-bg { stroke: rgba(255, 255, 255, 0.16); }
body.calm-mode .jrn-node-dot { background: #2a2230; }
body.calm-mode .jrn-card { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 32px 70px rgba(0,0,0,0.45); }
body.calm-mode .jrn-card-icon { background: linear-gradient(160deg, rgba(70,55,64,0.9), rgba(50,40,48,0.9)); border-color: rgba(255,255,255,0.12); color: #e6c2c7; }
body.calm-mode .jrn-card-badge { color: #c9b9bb; background: rgba(230,194,199,0.1); border-color: rgba(230,194,199,0.2); }

/* ---- Responsivo ---- */
@media (max-width: 860px) {
  .jrn-card { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .jrn-card-divider { display: none; }
  .jrn-card-aside { flex-direction: row; justify-content: center; gap: 14px; }
  .jrn-card-text { margin-inline: auto; }
  .jrn-year { font-size: clamp(200px, 60vw, 460px); opacity: 0.42; }
  .jrn-node-name { display: none; }
  .jrn-node.is-active .jrn-node-name { display: block; }
}
@media (max-width: 560px) {
  .jrn-timeline { height: 200px; }
  .jrn-butterfly { width: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .jrn-year, .jrn-butterfly img, .jrn-node.is-active .jrn-node-dot,
  .jrn-card.is-switching .jrn-card-main, .jrn-card.is-switching .jrn-card-aside {
    animation: none !important;
    transition: opacity 0.2s linear !important;
  }
}

/* =====================================================================
   Diagnóstico Humanizado — etapas visuais do processo (acolhedor/previsível)
   ===================================================================== */
.diag-steps {
  list-style: none;
  margin: 22px 0 28px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.diag-step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
/* conector vertical sutil entre as etapas (sensação de processo contínuo) */
.diag-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: -16px;
  width: 2px;
  background: linear-gradient(var(--color-rose), transparent);
  opacity: 0.4;
}
.diag-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-label), "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--color-rose);
  background: rgba(184, 122, 132, 0.1);
  border: 1px solid rgba(184, 122, 132, 0.24);
}
.diag-step-body strong {
  display: block;
  margin-bottom: 3px;
  color: var(--color-ink);
  font-family: var(--font-heading), "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 800;
}
.diag-step-body span {
  color: var(--color-text);
  font-family: var(--font-open), "Open Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
}
body.calm-mode .diag-step-num {
  background: rgba(230, 194, 199, 0.12);
  border-color: rgba(230, 194, 199, 0.28);
  color: #e6c2c7;
}

/* =====================================================================
   Playground — chips esféricos com ícones (sem texto)
   Cada ícone representa um tema; mesma física/animações de antes.
   ===================================================================== */
.physics-chip {
  border-radius: 50% !important;
  display: grid !important;
  place-items: center;
  padding: 0 !important;
  overflow: hidden;
  background: radial-gradient(circle at 32% 28%, #ffffff, #fdf6f3) !important;
  border: 1px solid rgba(184, 122, 132, 0.22) !important;
  box-shadow:
    0 12px 26px rgba(58, 46, 43, 0.12),
    0 2px 6px rgba(58, 46, 43, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6) !important;
  will-change: transform;
  backface-visibility: hidden;
}
/* ícone central — contido, nunca pontudo, com leve respiro nas bordas.
   As imagens pg-*.png já têm margem uniforme embutida (conteúdo ~74% do quadro),
   então o desenho fica em ~60% da esfera e todos com o mesmo peso visual. */
.chip-ic {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  /* sem drop-shadow: 16+ filtros caros prejudicavam o desempenho ao rolar */
}
/* desativa resquícios das iterações anteriores (carinha/texto/personagem) */
.physics-chip .chip-face,
.physics-chip .chip-txt,
.physics-chip img.chip-face-img,
.chip-face,
.chip-txt,
.chip-face-img { display: none !important; }

/* Calm mode: círculo translúcido escuro, ícone preservado e levemente suave */
body.calm-mode .physics-chip {
  background: radial-gradient(circle at 32% 28%, rgba(58, 50, 60, 0.96), rgba(40, 34, 44, 0.94)) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}
body.calm-mode .chip-ic {
  filter: brightness(0.96);
}

/* isola a pintura da seção do playground (evita repaint do entorno no scroll) */
.playground-canvas-wrapper { contain: layout paint style; }

.playground-canvas-wrapper[data-pg-state="idle"],
.playground-canvas-wrapper[data-pg-state="paused"] {
  content-visibility: auto;
  contain-intrinsic-size: 500px;
}

/* =====================================================================
   Pompons FELPUDOS — bolinhas de pelúcia (imagem de pelo), azul/rosa.
   A imagem JÁ traz o pelo; a esfera fica transparente e o pelo "vaza" da borda.
   ===================================================================== */
.physics-chip.pompom {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;   /* deixa o pelo passar da borda (fofinho) */
}
.pompom-fur {
  width: 106%;
  height: 106%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  /* sem drop-shadow (perf): os pompons já têm sombreado próprio na imagem */
}
body.calm-mode .pompom-fur {
  filter: brightness(0.96);
}

/* PERFORMANCE: quando o playground está pausado (fora da tela), libera as
   camadas de composição das 32 bolinhas — evita travar ao rolar a página. */
.playground-canvas-wrapper[data-pg-state="idle"] .physics-chip,
.playground-canvas-wrapper[data-pg-state="paused"] .physics-chip {
  will-change: auto;
}

/* =====================================================================
   Modo "Organizar" — caixas suaves (zonas mágicas), dicas e feedbacks.
   Tudo dentro do container do playground; pointer-events: none p/ não
   atrapalhar o arrasto (Matter usa coordenadas, não cliques no DOM).
   ===================================================================== */
.organize-layer { position: absolute; inset: 0; pointer-events: none; }

/* NINHOS DE PARES — bolha macia, pílula de nome, 2 slots, sem borda dura/CAPS */
.nest {
  position: absolute;
  z-index: 1;                 /* atrás das bolinhas (z 2) */
  border-radius: 30px;
  background: var(--nest-soft, rgba(255, 255, 255, 0.18));
  box-shadow: 0 10px 26px rgba(58, 46, 43, 0.10), inset 0 0 30px rgba(255, 255, 255, 0.28);
  display: flex; align-items: center; justify-content: center;
  padding-top: 26px; box-sizing: border-box;  /* deixa os slots abaixo do cabeçalho */
  transition: transform 200ms ease, box-shadow 220ms ease;
}
.nest-label {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-label), sans-serif; font-size: 12px; font-weight: 700;
  color: rgba(58, 46, 43, 0.62);
  background: rgba(255, 255, 255, 0.72);
  padding: 3px 13px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(58, 46, 43, 0.08);
  white-space: nowrap;
}
.nest-drop {
  position: absolute; bottom: 9px; left: 50%;
  transform: translateX(-50%) translateY(5px);
  font-family: var(--font-label), sans-serif; font-size: 11px; font-weight: 700;
  color: #fff; background: var(--nest-glow, #b87a84);
  padding: 3px 12px; border-radius: 999px;
  opacity: 0; transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}
.nest-slots { display: flex; gap: 14px; }
.slot {
  width: 58px; height: 58px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 2px 8px rgba(58, 46, 43, 0.12), inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  animation: slotBreath 4s ease-in-out infinite;
}
@keyframes slotBreath { 0%, 100% { opacity: 0.78; } 50% { opacity: 1; } }
.slot.is-filled { background: transparent; box-shadow: none; animation: none; }
/* hover: o ninho do par acende + mostra "Solte aqui" */
.nest.is-hover { transform: scale(1.03); box-shadow: 0 0 0 4px var(--nest-glow), 0 14px 30px rgba(58, 46, 43, 0.14); }
.nest.is-hover .nest-drop { opacity: 1; transform: translateX(-50%) translateY(0); }
.nest.is-hover .slot:not(.is-filled) { box-shadow: inset 0 2px 8px rgba(58, 46, 43, 0.12), inset 0 0 0 2px var(--nest-glow); }
/* encaixe: "pop" do ninho */
.nest.is-pop { animation: nestPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes nestPop { 0% { transform: scale(1); } 45% { transform: scale(1.05); } 100% { transform: scale(1); } }
/* erro: tremor sutil, sem vermelho */
.nest.is-wrong { animation: nestWobble 0.5s ease; }
@keyframes nestWobble {
  0%, 100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-1deg); }
  50% { transform: translateX(5px) rotate(1deg); }
  75% { transform: translateX(-3px); }
}
/* grupo completo */
.nest.is-complete { box-shadow: 0 0 0 3px var(--nest-glow), 0 12px 28px rgba(58, 46, 43, 0.12); }
.nest.is-complete .nest-label::after { content: " ✓"; }
/* bandeja de peças (faixa inferior) */
.organize-tray {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px 22px 0 0;
}
/* duplicatas de ícone ficam ocultas durante o modo Organizar (1 cópia por tipo) */
.physics-chip.organize-hidden {
  display: none !important;
  pointer-events: none !important;
}

.playground-canvas-wrapper[data-organize="on"] .physics-chip:not(.organize-hidden) {
  z-index: 4;
}

/* Inventário de DUPLAS COMPLETAS (canto superior direito) — começa vazio e
   vai enchendo conforme o jogador completa os ninhos. Só indicador visual. */
.organize-collection {
  position: absolute; z-index: 5;
  top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
  pointer-events: none;
}
.collection-pair {
  display: flex; gap: 3px; align-items: center;
  background: rgba(255, 255, 255, 0.66);
  border-radius: 999px; padding: 4px 9px;
  box-shadow: 0 2px 8px rgba(58, 46, 43, 0.10);
  animation: collectPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes collectPop { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.cp-ic { width: 22px; height: 22px; object-fit: contain; }
body.calm-mode .collection-pair { background: rgba(40, 34, 44, 0.66); }
@media (max-width: 560px) {
  .cp-ic { width: 17px; height: 17px; }
  .collection-pair { padding: 3px 7px; }
}
/* faísca de acerto */
.organize-sparkle {
  position: absolute; z-index: 6;
  width: 7px; height: 7px; border-radius: 50%;
  margin: -3.5px 0 0 -3.5px;
  pointer-events: none;
  box-shadow: 0 0 7px 2px rgba(255, 255, 255, 0.6);
  animation: orgSparkle 700ms ease-out forwards;
}
@keyframes orgSparkle {
  0%   { transform: translate(0, 0) scale(0.4); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(var(--sx, 0), var(--sy, 0)) scale(1.1); opacity: 0; }
}
/* fio de luz (constelação) da aura até o ícone aninhado */
.organize-thread {
  position: absolute; z-index: 1;
  height: 2px; border-radius: 2px;
  transform-origin: 0 50%;
  opacity: 0.55;
  pointer-events: none;
  animation: orgThread 480ms ease-out;
}
@keyframes orgThread { from { opacity: 0; } to { opacity: 0.55; } }

/* feedbacks no chip */
.physics-chip.is-placed { z-index: 3; }
.physics-chip.is-correct { z-index: 6; animation: orgChipCorrect 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes orgChipCorrect {
  0% { filter: brightness(1); }
  45% { filter: brightness(1.22) drop-shadow(0 0 10px rgba(140, 200, 160, 0.85)); }
  100% { filter: brightness(1); }
}
.physics-chip.is-wrong { animation: orgChipWrong 0.5s ease; }
@keyframes orgChipWrong {
  0%, 100% { filter: none; }
  50% { filter: saturate(1.15) brightness(0.97); }
}

/* badge de progresso "Rodada X de 4" (bem no topo) */
.organize-round {
  position: absolute; z-index: 5;
  top: 10px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-heading), sans-serif;
  font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  color: rgba(58, 46, 43, 0.62);
  white-space: nowrap;
}
/* instrução curta (logo abaixo do progresso) */
.organize-hint {
  position: absolute;
  z-index: 5;
  top: 34px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label), sans-serif;
  font-size: 12px; font-weight: 700;
  color: rgba(58, 46, 43, 0.55);
  background: rgba(255, 255, 255, 0.78);
  padding: 5px 15px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(58, 46, 43, 0.10);
  white-space: nowrap;
}

/* botões "Próxima rodada" / "Misturar novamente" */
.organize-next, .organize-remix {
  pointer-events: auto;
  cursor: pointer;
  font-family: var(--font-label), sans-serif;
  font-weight: 700; font-size: 13px;
  color: #fff; border: none; border-radius: 999px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #c98a9a, #b87a84);
  box-shadow: 0 8px 20px rgba(184, 122, 132, 0.35);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.organize-next {
  position: absolute; z-index: 6;
  left: 50%; bottom: 16px; transform: translateX(-50%);
}
.organize-next:hover { transform: translateX(-50%) translateY(-2px); }
.organize-remix:hover { transform: translateY(-2px); }

/* mensagem final */
.organize-done {
  position: absolute; z-index: 7;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, 0.85);
  padding: 26px 34px; border-radius: 28px;
  box-shadow: 0 16px 40px rgba(58, 46, 43, 0.16);
  pointer-events: auto;
  animation: orgDonePop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes orgDonePop {
  0% { transform: translate(-50%, -50%) scale(0.82); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.organize-done-title {
  margin: 0;
  font-family: var(--font-heading), sans-serif;
  font-size: 20px; font-weight: 800;
  color: var(--ink, #3a2e2b);
}

/* modo calmo */
body.calm-mode .organize-hint { background: rgba(40, 34, 44, 0.72); color: #eae4dd; }
body.calm-mode .organize-round { color: rgba(243, 236, 228, 0.9); }
body.calm-mode .nest-label { background: rgba(40, 34, 44, 0.78); color: rgba(234, 228, 221, 0.85); }
body.calm-mode .organize-tray { background: linear-gradient(to top, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02)); }
body.calm-mode .organize-done { background: rgba(40, 34, 44, 0.88); }
body.calm-mode .organize-done-title { color: #f3ece4; }

@media (max-width: 560px) {
  .nest {
    border-radius: 24px;
    padding-top: 24px;
  }

  .nest-label {
    top: 8px;
    font-size: 11px;
    padding: 3px 10px;
  }

  .nest-slots {
    gap: 10px;
  }

  .slot {
    width: 46px;
    height: 46px;
  }

  .organize-round {
    top: 8px;
    font-size: 12px;
  }

  .organize-hint {
    top: 30px;
    max-width: calc(100% - 28px);
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slot, .nest.is-wrong, .nest.is-pop,
  .physics-chip.is-correct, .physics-chip.is-wrong,
  .organize-sparkle, .organize-done { animation: none; }
}

/* =====================================================================
   SCROLLBAR — com a identidade do site (rosa/mauve sobre papel).
   Slim, arredondada, com "respiro" ao redor do thumb. Versão p/ modo calmo.
   ===================================================================== */
/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-rose) var(--color-rose-soft);
}
/* Chrome / Edge / Safari */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--color-rose-soft);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--color-rose), var(--color-accent-pink));
  border-radius: 999px;
  /* a borda da cor do track "afina" o thumb e dá respiro nas laterais */
  border: 3px solid var(--color-rose-soft);
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a96a74, var(--color-rose));
  background-clip: padding-box;
}
::-webkit-scrollbar-corner { background: var(--color-rose-soft); }

/* Modo calmo (escuro) */
body.calm-mode { scrollbar-color: #c9a3ab rgba(255, 255, 255, 0.06); }
body.calm-mode ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
body.calm-mode ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c9a3ab, #9a7680);
  border: 3px solid rgba(255, 255, 255, 0.05);
  background-clip: padding-box;
}
body.calm-mode ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d8b6bd, #a98088);
  background-clip: padding-box;
}
body.calm-mode ::-webkit-scrollbar-corner { background: rgba(255, 255, 255, 0.05); }


/* =====================================================================
   DIAGNOSTICO HUMANIZADO — redesign premium (coeso com a Jornada)
   So transform/opacity animados (sem blur animado). Tudo via vars.
   ===================================================================== */
.diagnosis-image-col { position: relative; perspective: 1100px; }
.diagnosis-image-col::after {
  content: "";
  position: absolute;
  inset: -8% -10%;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(60% 60% at 30% 25%, rgba(204,160,164,0.40), transparent 70%);
  animation: diagHalo 6s ease-in-out infinite;
}
@keyframes diagHalo { 0%,100% { opacity: 0.5; } 50% { opacity: 0.9; } }

.diagnosis-art-wrapper {
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255,255,255,0.66), rgba(255,255,255,0.5)) padding-box,
    linear-gradient(150deg, rgba(255,255,255,0.9), rgba(204,160,164,0.45) 45%, rgba(184,122,132,0.28)) border-box;
  box-shadow: 0 32px 70px rgba(120,92,96,0.12), 0 2px 10px rgba(120,92,96,0.05);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.diagnosis-image-col:hover .diagnosis-art-wrapper {
  transform: rotateX(2.5deg) rotateY(-3deg) translateY(-6px);
  box-shadow: 0 44px 92px rgba(120,92,96,0.18), 0 6px 16px rgba(120,92,96,0.08);
}
.diagnosis-art-wrapper::before {
  inset: 20px; right: 20px; top: 20px; width: auto; height: auto;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 34%);
  z-index: 2;
  pointer-events: none;
}
.diagnosis-art-img { position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); }

.diag-step { padding: 12px 14px; border-radius: 18px; transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.diag-step-num {
  background: linear-gradient(150deg, var(--color-accent-pink), var(--color-rose));
  color: #fff; border: none;
  box-shadow: 0 6px 16px rgba(184,122,132,0.32), 0 0 0 6px rgba(204,160,164,0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.diag-step-body strong, .diag-step-body span { transition: transform 0.35s var(--ease); }
.diag-step:not(:last-child)::before { left: 31px; top: 48px; bottom: -28px; background: rgba(184,122,132,0.18); opacity: 1; }
.diag-step:not(:last-child)::after {
  content: ""; position: absolute; left: 31px; top: 48px; bottom: -28px; width: 2px;
  background: linear-gradient(var(--color-rose), var(--color-accent-pink));
  transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--ease);
}
.diag-step:hover { background: linear-gradient(150deg, rgba(255,255,255,0.55), rgba(255,255,255,0.32)); box-shadow: 0 12px 26px rgba(184,122,132,0.14), inset 3px 0 0 var(--color-rose); }
.diag-step:hover .diag-step-num { transform: scale(1.08); box-shadow: 0 8px 22px rgba(184,122,132,0.4), 0 0 0 6px rgba(204,160,164,0.18); }
.diag-step:hover .diag-step-body strong, .diag-step:hover .diag-step-body span { transform: translateX(4px); }

.diagnosis-content-col .diag-step { opacity: 0; }
.diagnosis-content-col.is-visible .diag-step { animation: diagStepIn 0.55s cubic-bezier(0.2,0.8,0.2,1) both; }
@keyframes diagStepIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.diagnosis-content-col.is-visible .diag-step:nth-child(1) { animation-delay: 0.06s; }
.diagnosis-content-col.is-visible .diag-step:nth-child(2) { animation-delay: 0.16s; }
.diagnosis-content-col.is-visible .diag-step:nth-child(3) { animation-delay: 0.26s; }
.diagnosis-content-col.is-visible .diag-step:nth-child(4) { animation-delay: 0.36s; }
.diagnosis-content-col.is-visible .diag-step:not(:last-child)::after { transform: scaleY(1); }
.diagnosis-content-col.is-visible .diag-step:nth-child(1)::after { transition-delay: 0.16s; }
.diagnosis-content-col.is-visible .diag-step:nth-child(2)::after { transition-delay: 0.26s; }
.diagnosis-content-col.is-visible .diag-step:nth-child(3)::after { transition-delay: 0.36s; }

.diagnosis-content-col .btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, #c98f97 50%, var(--color-accent-pink) 100%);
  border-color: transparent; gap: 10px;
  box-shadow: 0 16px 30px rgba(184,122,132,0.22), inset 0 1px 0 rgba(255,255,255,0.25);
}
.diagnosis-content-col .btn-primary:hover {
  background: linear-gradient(135deg, #b1727c 0%, #c98f97 50%, var(--color-accent-pink) 100%);
  box-shadow: 0 22px 40px rgba(184,122,132,0.30), 0 0 28px rgba(204,160,164,0.35);
}
.diagnosis-content-col .btn-primary::before { background: linear-gradient(120deg, transparent 28%, rgba(255,255,255,0.5) 50%, transparent 72%); transition: transform 720ms var(--ease); }
.btn-arrow { transition: transform 0.26s var(--ease); }
.diagnosis-content-col .btn-primary:hover .btn-arrow { transform: translateX(4px); }

body.calm-mode .diagnosis-art-img {
  background: #f4ece9;
  box-shadow: 0 0 0 1px rgba(230,194,199,0.25), 0 18px 40px rgba(0,0,0,0.4), inset 0 0 0 1px rgba(255,255,255,0.06);
  filter: saturate(0.96) brightness(0.97);
}
body.calm-mode .diagnosis-image-col::after { background: radial-gradient(60% 60% at 30% 25%, rgba(230,194,199,0.22), rgba(180,205,255,0.10) 45%, transparent 68%); }
body.calm-mode .diagnosis-art-wrapper {
  background:
    linear-gradient(rgba(46,39,48,0.86), rgba(40,34,44,0.82)) padding-box,
    linear-gradient(150deg, rgba(230,194,199,0.4), rgba(230,194,199,0.12) 60%) border-box !important;
  box-shadow: 0 32px 70px rgba(0,0,0,0.45), 0 2px 10px rgba(0,0,0,0.3) !important;
}
body.calm-mode .diag-step:not(:last-child)::before { background: rgba(230,194,199,0.16); }
body.calm-mode .diag-step:not(:last-child)::after { background: linear-gradient(#e6c2c7, rgba(230,194,199,0.4)); }
body.calm-mode .diag-step:hover { background: rgba(230,194,199,0.08); box-shadow: 0 12px 26px rgba(0,0,0,0.3), inset 3px 0 0 #e6c2c7; }
body.calm-mode .diagnosis-content-col .btn-primary {
  background: linear-gradient(135deg, var(--color-rose) 0%, #c98f97 50%, var(--color-accent-pink) 100%) !important;
  border-color: transparent !important;
}
body.calm-mode .diagnosis-section { isolation: isolate; }
body.calm-mode .diagnosis-section::before,
body.calm-mode .diagnosis-section::after { content: ""; position: absolute; z-index: 0; width: 360px; height: 360px; border-radius: 50%; pointer-events: none; }
body.calm-mode .diagnosis-section::before { top: 6%; left: -3%; background: radial-gradient(circle, rgba(230,194,199,0.12), transparent 68%); }
body.calm-mode .diagnosis-section::after { bottom: 4%; right: -3%; background: radial-gradient(circle, rgba(140,170,220,0.10), transparent 68%); }
body.calm-mode .diagnosis-grid { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .diagnosis-image-col::after { animation: none; opacity: 0.7; }
  .diagnosis-image-col:hover .diagnosis-art-wrapper { transform: none; }
  .diagnosis-content-col .diag-step { opacity: 1; }
  .diagnosis-content-col.is-visible .diag-step { animation: none; }
  .diag-step:not(:last-child)::after { transform: scaleY(1); transition: none; }
  .btn-arrow, .diag-step-body strong, .diag-step-body span { transition: none; }
}

/* =====================================================================
   MODAL "O Processo de Diagnostico" (+ modais) — premium animado
   ===================================================================== */
.modal.is-active .modal-backdrop { animation: modalFade 0.35s ease both; }
.modal.is-active .modal-content { animation: modalIn 0.42s cubic-bezier(0.2,0.9,0.3,1) both; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(0.96); } to { opacity: 1; transform: none; } }

.modal-close {
  border: 1px solid rgba(184,122,132,0.28);
  background: rgba(184,122,132,0.08);
  color: var(--color-rose);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.modal-close:hover {
  background: linear-gradient(150deg, var(--color-accent-pink), var(--color-rose));
  color: #fff;
  transform: rotate(90deg) scale(1.08);
  box-shadow: 0 8px 20px rgba(184,122,132,0.32);
}

#diagnostic-modal .modal-title { position: relative; padding-bottom: 16px; }
#diagnostic-modal .modal-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--color-rose), var(--color-accent-pink));
}

#diagnostic-modal .modal-list { list-style: none; counter-reset: diagm; padding: 0; margin: 24px 0 4px; }
#diagnostic-modal .modal-list li {
  counter-increment: diagm;
  position: relative;
  padding: 14px 16px 14px 62px;
  margin: 0 0 6px;
  border-radius: 16px;
  line-height: 1.55;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
#diagnostic-modal .modal-list li::before {
  content: counter(diagm);
  position: absolute;
  left: 14px; top: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--color-accent-pink), var(--color-rose));
  color: #fff;
  font-family: var(--font-label), "Montserrat", sans-serif;
  font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 16px rgba(184,122,132,0.32), 0 0 0 6px rgba(204,160,164,0.12);
  z-index: 1;
  transition: transform 0.35s var(--ease);
}
#diagnostic-modal .modal-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 31px; top: 50px; bottom: -6px;
  width: 2px;
  background: linear-gradient(var(--color-rose), rgba(204,160,164,0.4));
  z-index: 0;
}
#diagnostic-modal .modal-list li strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-ink);
  font-family: var(--font-heading), "Nunito", sans-serif;
  font-weight: 800;
  font-size: 16px;
}
#diagnostic-modal .modal-list li:hover {
  background: linear-gradient(150deg, rgba(184,122,132,0.08), rgba(184,122,132,0.03));
  box-shadow: inset 3px 0 0 var(--color-rose);
}
#diagnostic-modal .modal-list li:hover::before { transform: scale(1.08); }

#diagnostic-modal .modal-list li { opacity: 0; }
#diagnostic-modal.is-active .modal-list li { animation: diagStepIn 0.5s cubic-bezier(0.2,0.8,0.2,1) both; }
#diagnostic-modal.is-active .modal-list li:nth-child(1) { animation-delay: 0.14s; }
#diagnostic-modal.is-active .modal-list li:nth-child(2) { animation-delay: 0.24s; }
#diagnostic-modal.is-active .modal-list li:nth-child(3) { animation-delay: 0.34s; }

body.calm-mode #diagnostic-modal .modal-list li { color: #cbbcbe; }
body.calm-mode #diagnostic-modal .modal-list li strong { color: #f1e8e6; }
body.calm-mode #diagnostic-modal .modal-list li:hover { background: rgba(230,194,199,0.08); box-shadow: inset 3px 0 0 #e6c2c7; }
body.calm-mode #diagnostic-modal .modal-list li:not(:last-child)::after { background: linear-gradient(#e6c2c7, rgba(230,194,199,0.4)); }
body.calm-mode .modal-close { background: rgba(230,194,199,0.1); border-color: rgba(230,194,199,0.25); color: #e6c2c7; }
body.calm-mode .modal-close:hover { background: linear-gradient(150deg, var(--color-accent-pink), var(--color-rose)); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .modal.is-active .modal-content, .modal.is-active .modal-backdrop { animation: none; }
  #diagnostic-modal .modal-list li { opacity: 1; }
  #diagnostic-modal.is-active .modal-list li { animation: none; }
  .modal-close:hover { transform: none; }
}