/* =========================================================
   Interações: mancha, exercício da TCC, cartões, respiração e botão flutuante
   ========================================================= */

/* ===== Interações ===== */
.arch figcaption {
  display: none;
}
.blot-ask {
  position: absolute;
  z-index: 3;
  top: calc(7% + 14px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  font-family: var(--serif);
  font-size: 1.12rem;
  color: var(--petrol);
  background: rgba(251, 252, 250, 0.75);
  border: 1px solid rgba(110, 79, 158, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.blot-ask::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse 2s infinite;
}
.blot-ask:hover {
  background: var(--white);
  border-color: var(--violet);
  transform: translateX(-50%) translateY(-1px);
}
@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}
.portrait .arch {
  cursor: pointer;
}
.portrait:hover .blot {
  transform: scale(1.03);
}
.blot {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.blot-quiz {
  position: absolute;
  z-index: 4;
  left: -1.5rem;
  right: 1rem;
  bottom: 1.25rem;
  background: var(--white);
  border-radius: 22px;
  padding: 1.25rem 1.25rem 1.2rem;
  box-shadow: 0 30px 60px -30px rgba(22, 54, 58, 0.5);
  animation: rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.bq-title {
  margin: 0 2rem 0.8rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--petrol);
  line-height: 1.25;
}
.bq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.bq-options button {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--violet);
  background: var(--lilac-soft);
  border: 1.5px solid transparent;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.bq-options button:hover {
  border-color: var(--violet);
}
.bq-options button[aria-pressed="true"] {
  background: var(--violet);
  color: var(--white);
}
.bq-answer:not(:empty) {
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--mist);
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--ink);
  animation: rise 0.4s ease;
}
.bq-answer button {
  margin-top: 0.6rem;
  font: inherit;
  font-weight: 700;
  color: var(--petrol);
  background: none;
  border: 0;
  padding: 0 0 2px;
  cursor: pointer;
  border-bottom: 1.5px solid var(--violet);
}
.bq-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--sage);
  color: var(--petrol);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.portrait.quiz-open .float-card {
  visibility: hidden;
}
.float-card {
  transition: opacity 0.3s;
}

.try {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 30px;
  padding: clamp(1.75rem, 4vw, 3rem);
}
.try-head {
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}
.try-head h3 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}
.try-head p:last-child {
  margin: 0;
  color: var(--muted);
}
.try-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.try-tabs button {
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--petrol);
  background: var(--sage);
  border: 1.5px solid transparent;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}
.try-tabs button:hover {
  border-color: var(--petrol);
}
.try-tabs button[aria-selected="true"] {
  background: var(--petrol);
  color: var(--white);
}
.chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.link {
  position: relative;
  padding: 1.25rem 1.25rem 1.35rem;
  border-radius: 20px;
  background: var(--sage);
  margin: 0 0.45rem;
  transition: background 0.5s;
}
.link + .link::before {
  content: "";
  position: absolute;
  left: -0.95rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-top: 1.5px solid var(--violet);
  border-right: 1.5px solid var(--violet);
  transform: translateY(-50%) rotate(45deg);
}
.lk {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.4rem;
}
.link p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--petrol);
  transition: opacity 0.35s;
}
.link p.swap {
  opacity: 0;
}
.chain.alt .link:not(:first-child) {
  background: var(--lilac-soft);
}
.try-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.75rem;
}
.reframe {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--petrol);
  background: var(--white);
  border: 1.5px solid var(--petrol);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s;
}
.reframe:hover {
  background: var(--petrol);
  color: var(--white);
}
.reframe[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: var(--white);
}
.rf-dot {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--mist);
  position: relative;
  transition: background 0.25s;
  flex: none;
}
.rf-dot::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--petrol);
  transition:
    transform 0.25s,
    background 0.25s;
}
.reframe[aria-pressed="true"] .rf-dot {
  background: rgba(255, 255, 255, 0.3);
}
.reframe[aria-pressed="true"] .rf-dot::after {
  transform: translateX(14px);
  background: var(--white);
}
.try-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.flip-intro {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 1.25rem;
  color: var(--lilac);
  font-size: 1rem;
}
.flip-intro span {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  margin-right: 0.35rem;
}
.flips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto;
  perspective: 1200px;
}
.flip {
  position: relative;
  height: 210px;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.flip[aria-pressed="true"] {
  transform: rotateY(180deg);
}
.flip.reveal.in[aria-pressed="true"] {
  transform: rotateY(180deg);
}
.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
}
.f-front {
  background: rgba(251, 252, 250, 0.06);
  border: 1px solid rgba(217, 205, 234, 0.28);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
}
.f-front .q {
  font-size: 2.6rem;
  line-height: 0.4;
  color: var(--lilac);
  opacity: 0.6;
  height: 0.45em;
}
.f-front small {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--lilac);
  opacity: 0.85;
}
.f-back {
  background: var(--lilac);
  color: var(--petrol);
  transform: rotateY(180deg);
  font-size: 1rem;
  line-height: 1.55;
}
.f-back strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--violet);
}
.flip:hover .f-front {
  border-color: var(--lilac);
}

.verbs li {
  padding: 0;
}
.verbs button {
  width: 100%;
  height: 100%;
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  padding: clamp(1.4rem, 3vw, 2rem) 0.5rem;
  transition: background 0.25s;
}
.verbs button:hover {
  background: rgba(217, 205, 234, 0.3);
}
.verbs button[aria-pressed="true"] {
  background: var(--lilac-soft);
}
.verb-prompt {
  min-height: 3.2rem;
  margin: -1.25rem auto 2rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.35;
  color: var(--violet);
}
.verb-prompt .vp-hint {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--muted);
}
.verb-prompt .vp-q {
  display: inline-block;
  animation: rise 0.45s ease;
}

#psi-pausa {
  background: var(--white);
}
.pause {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.pause-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  margin: 0 0 1rem;
}
.pause-text > p {
  max-width: 30rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
}
.pause-text > .kicker {
  color: var(--violet);
  margin-bottom: 1.2rem;
}
.pause-done {
  min-height: 1.5rem;
  margin: 1.25rem 0 0 !important;
  color: var(--petrol) !important;
  font-family: var(--serif);
  font-size: 1.2rem;
}
.pause-done button {
  font: inherit;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet);
  background: none;
  border: 0;
  padding: 0 0 2px;
  margin-left: 0.2rem;
  cursor: pointer;
  border-bottom: 1.5px solid var(--violet);
}
.breath {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  justify-self: center;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(110, 79, 158, 0.18);
}
.ring.r2 {
  inset: 14%;
  border-color: rgba(110, 79, 158, 0.12);
}
.orb {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, var(--lilac), var(--violet));
  color: var(--white);
  box-shadow: 0 20px 50px -20px rgba(110, 79, 158, 0.7);
  transition: transform 4s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
.breath.inhale .orb {
  transform: scale(1.9);
  transition-duration: 4s;
}
.breath.exhale .orb {
  transform: scale(1);
  transition-duration: 6s;
}
.breath-label {
  font-family: var(--serif);
  font-size: 1.1rem;
  transition: opacity 0.4s;
}
.breath.inhale .breath-label,
.breath.exhale .breath-label {
  font-size: 0.75rem;
}

.psi-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}
.psi-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--violet), var(--lilac));
  transition: width 0.15s linear;
}
header.top {
  position: sticky;
}

.float-cta {
  position: fixed;
  z-index: 30;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  background: var(--violet);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.95rem 1.4rem 0.95rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 20px 40px -18px rgba(22, 54, 58, 0.7);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s,
    background 0.2s;
}
.float-cta.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.float-cta:hover {
  background: var(--petrol);
}
.float-cta svg {
  width: 18px;
  height: 18px;
}
.fc-pulse {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lilac);
}
.fc-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--lilac);
  animation: halo 2.2s ease-out infinite;
}

@media (max-width: 960px) {
  .chain {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem 0;
  }
  .link:nth-child(3)::before {
    display: none;
  }
}
@media (max-width: 860px) {
  .pause {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pause-text > p {
    margin-left: auto;
    margin-right: auto;
  }
  .flips {
    grid-template-columns: 1fr;
    max-width: 26rem;
  }
  .flip {
    height: 180px;
  }
  .blot-quiz {
    left: -0.5rem;
    right: -0.5rem;
  }
}
@media (max-width: 560px) {
  .hide-sm {
    display: none;
  }
  .mark {
    white-space: nowrap;
  }
  .chain {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .link {
    margin: 0;
  }
  .link + .link::before {
    display: block !important;
    left: 50%;
    top: -0.95rem;
    transform: translateX(-50%) rotate(135deg);
  }
  .float-cta {
    left: 1rem;
    right: 1rem;
    justify-content: center;
  }
  .verb-prompt {
    margin-top: -1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blot-ask::after,
  .fc-pulse::after {
    animation: none;
  }
  .flip {
    transition: none;
  }
}
