/* biome-ignore-all lint/style/noDescendingSpecificity: a página é organizada por seção, não por especificidade. */
/*
 * Página inicial do Psixia (apps/site). Estilo pedido pelo Bruno em 02/11: cartão grande com bolha
 * fluida animada e cartões de vidro, títulos grandes e finos, ícones de linha, muito espaço.
 * Cores, fonte (Inter) e logo são os do app (packages/ui/src/tokens.css, estilo "Clínico").
 */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonte/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("./fonte/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@property --giro {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  color-scheme: light;
  --fundo: #e9edf4;
  --cartao: #ffffff;
  --superficie: #f3f5f9;
  --borda: #e5e7eb;
  --texto: #111827;
  --texto-suave: #4b5563;
  --texto-fraco: #6b7280;
  --primaria: #2549b8;
  --primaria-forte: #1a3587;
  --sobre-primaria: #ffffff;
  --primaria-clara: #e0e9ff;
  --sucesso: #15803d;
  --sucesso-fundo: #dcfce7;
  --perigo: #b42318;
  --perigo-fundo: #fde8e6;
  --escuro: #0e1320;
  --vidro: rgb(255 255 255 / 0.62);
  --vidro-borda: rgb(255 255 255 / 0.8);
  --sombra: 0 1px 2px rgb(16 24 40 / 0.05), 0 24px 48px -24px rgb(16 24 40 / 0.22);
  --sombra-forte: 0 40px 100px -40px rgb(26 53 135 / 0.5);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fundo: #0b0d11;
    --cartao: #13161c;
    --superficie: #1a1d24;
    --borda: #262a33;
    --texto: #e7e9ee;
    --texto-suave: #9aa1ad;
    --texto-fraco: #8a919c;
    --primaria: #8eaaff;
    --primaria-forte: #b5c7ff;
    --sobre-primaria: #0b1530;
    --primaria-clara: #1c2a4d;
    --sucesso: #4ade80;
    --sucesso-fundo: #12301e;
    --perigo: #ff8a7a;
    --perigo-fundo: #44201c;
    --escuro: #080a0f;
    --vidro: rgb(30 34 44 / 0.55);
    --vidro-borda: rgb(255 255 255 / 0.1);
    --sombra: 0 0 0 1px #262a33;
    --sombra-forte: 0 40px 100px -40px rgb(0 0 0 / 0.9);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primaria);
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sprite {
  position: absolute;
}
.largura {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) {
  .largura {
    padding: 0 32px;
  }
}
.pular {
  position: absolute;
  left: -9999px;
}
.pular:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--cartao);
  padding: 8px 12px;
  border-radius: 8px;
}
:focus-visible {
  outline: 3px solid var(--primaria);
  outline-offset: 3px;
}

/* Pílulas (botões) */
.pilula {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.pilula:hover {
  transform: translateY(-2px);
}
.pilula svg {
  width: 18px;
  height: 18px;
}
.marca-conta {
  flex: none;
}
.pilula-escura {
  background: var(--texto);
  color: var(--cartao);
  padding-right: 6px;
}
.pilula-escura:hover {
  box-shadow: 0 12px 30px -12px rgb(17 24 39 / 0.6);
}
.pilula-seta {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primaria);
  color: #fff;
  margin-left: 6px;
  transition: transform 0.25s;
}
.pilula:hover .pilula-seta {
  transform: rotate(45deg);
}
.pilula-escura .marca-conta {
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  width: 24px;
  height: 24px;
}
.pilula-contorno {
  background: var(--vidro);
  color: var(--texto);
  border: 1px solid var(--borda);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pilula-clara {
  min-height: 42px;
  padding: 0 20px;
  background: var(--superficie);
  color: var(--texto);
}
.pilula-branca {
  background: #fff;
  color: #111827;
}
.pilula-vidro {
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  border: 1px solid rgb(255 255 255 / 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pilula-larga {
  width: 100%;
  justify-content: space-between;
  padding-left: 28px;
}
.entrar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.entrar .pilula {
  flex: 1 1 230px;
}
@media (min-width: 720px) {
  .entrar .pilula {
    flex: 0 0 auto;
  }
}
.entrar-centro {
  justify-content: center;
}

/* Palco (abertura) */
.palco {
  padding: 12px;
}
@media (min-width: 720px) {
  .palco {
    padding: 20px;
  }
}
.palco-cartao {
  position: relative;
  overflow: hidden;
  background: var(--cartao);
  border-radius: 28px;
  padding: 0 20px 32px;
  min-height: calc(100svh - 24px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--sombra);
}
@media (min-width: 720px) {
  .palco-cartao {
    border-radius: 36px;
    padding: 0 48px 48px;
    min-height: calc(100svh - 40px);
  }
}
.topo {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
}
.marca {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--texto);
  text-decoration: none;
}
.selo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primaria);
  color: var(--sobre-primaria);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.selo svg {
  width: 13px;
  height: 18px;
}
.menu {
  display: none;
  gap: 4px;
  margin: 0 auto;
}
.menu a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.menu a:hover {
  color: var(--texto);
  background: var(--superficie);
}
.topo-acoes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* A área do paciente (ADR 0029): o paciente entra por aqui, sem passar pelo app da psicóloga. */
.sou-paciente {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.sou-paciente:hover {
  color: var(--texto);
  background: var(--superficie);
}
@media (min-width: 860px) {
  .menu {
    display: flex;
  }
  .topo-acoes {
    margin-left: 0;
  }
}

.palco-grade {
  position: relative;
  flex: 1;
  display: grid;
  gap: 24px;
  align-content: center;
}
@media (min-width: 1000px) {
  .palco-grade {
    /* Arte (bolha e cartões) à esquerda e texto à direita (pedido do Bruno, 02/11). */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 32px;
  }
}
.palco-texto {
  position: relative;
  z-index: 3;
  padding-top: 8px;
}
.selo-teste {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sucesso-fundo);
  color: var(--sucesso);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.ponto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulsar 2s ease-in-out infinite;
}
@keyframes pulsar {
  50% {
    opacity: 0.3;
  }
}
.titulo-palco {
  font-size: clamp(2.3rem, 8.4vw, 6.4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.98;
}
@media (min-width: 1000px) {
  .titulo-palco {
    font-size: clamp(3rem, 5.2vw, 5.6rem);
  }
}
.linha {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.linha > span {
  display: inline-block;
}
.tom {
  background: linear-gradient(100deg, var(--primaria) 10%, #7c5cff 55%, #38bdf8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.palco-lead {
  margin-top: 24px;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--texto-suave);
}
.palco-recursos {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: 36rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.palco-recursos li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.07);
  color: var(--texto);
  font-size: 0.84rem;
  line-height: 1.3;
}

/* A arte da direita: a bolha com o logo em cima e os dois cartões lado a lado embaixo, sem nada
   por cima de nada (o Bruno pediu em 02/11: elementos sobrepostos ficavam ilegíveis). */
.palco-arte {
  position: relative;
  order: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: center;
  align-items: stretch;
  gap: 14px;
}
@media (min-width: 1000px) {
  .palco-arte {
    order: -1;
    gap: 16px;
  }
}
.bolha-area {
  position: relative;
  grid-column: 1 / -1;
  justify-self: center;
  width: min(300px, 72vw);
  aspect-ratio: 1;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
}
@media (min-width: 1000px) {
  .bolha-area {
    width: min(340px, 25vw);
  }
}
.bolha {
  position: absolute;
  inset: 0;
  border-radius: 42% 58% 62% 38% / 45% 40% 60% 55%;
  background:
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.95) 0, rgb(255 255 255 / 0) 18%),
    radial-gradient(circle at 72% 78%, rgb(124 92 255 / 0.55), transparent 45%),
    radial-gradient(circle at 20% 80%, rgb(56 189 248 / 0.6), transparent 45%),
    conic-gradient(
      from var(--giro) at 50% 50%,
      #2549b8,
      #5b8cff,
      #a5d8ff,
      #c4b5fd,
      #7c5cff,
      #1a3587,
      #38bdf8,
      #2549b8
    );
  box-shadow:
    inset -28px -40px 80px rgb(10 20 80 / 0.45),
    inset 24px 28px 60px rgb(255 255 255 / 0.55),
    0 40px 90px -30px rgb(37 73 184 / 0.55);
  filter: saturate(1.1);
}
.bolha::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: inherit;
  background: inherit;
  filter: blur(40px);
  opacity: 0.55;
  z-index: -1;
  transform: translateY(14%);
}
.bolha-brilho {
  position: absolute;
  left: 18%;
  top: 12%;
  width: 34%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / 0.9), transparent);
  filter: blur(6px);
  transform: rotate(-24deg);
}
.bolha-reflexo {
  position: absolute;
  inset: 4%;
  border-radius: inherit;
  border: 2px solid rgb(255 255 255 / 0.45);
  border-left-color: transparent;
  border-bottom-color: transparent;
  filter: blur(1.5px);
}
@media (prefers-reduced-motion: no-preference) {
  .bolha {
    animation:
      girar 14s linear infinite,
      escorrer 16s ease-in-out infinite alternate;
  }
}
@keyframes girar {
  to {
    --giro: 360deg;
  }
}
@keyframes escorrer {
  0% {
    border-radius: 42% 58% 62% 38% / 45% 40% 60% 55%;
    transform: rotate(0deg) scale(1);
  }
  33% {
    border-radius: 58% 42% 38% 62% / 55% 62% 38% 45%;
    transform: rotate(16deg) scale(1.04);
  }
  66% {
    border-radius: 36% 64% 55% 45% / 62% 38% 62% 38%;
    transform: rotate(-10deg) scale(0.97);
  }
  100% {
    border-radius: 60% 40% 45% 55% / 40% 58% 42% 60%;
    transform: rotate(8deg) scale(1.02);
  }
}

/* Abertura escura e imersiva (fundo do segundo exemplo do Bruno): luzes que passeiam, fios de luz
   e um grão leve, como uma foto à noite. Os tokens viram os do tema escuro só aqui dentro. */
.palco-cartao {
  --texto: #f4f6fb;
  --texto-suave: rgb(232 236 246 / 0.78);
  --texto-fraco: rgb(232 236 246 / 0.6);
  --cartao: #0a1024;
  --superficie: rgb(255 255 255 / 0.08);
  --borda: rgb(255 255 255 / 0.14);
  --primaria: #8eaaff;
  --sucesso: #6ee7a8;
  --sucesso-fundo: rgb(110 231 168 / 0.14);
  --vidro: rgb(255 255 255 / 0.08);
  --vidro-borda: rgb(255 255 255 / 0.16);
  --sombra: 0 30px 60px -30px rgb(0 0 0 / 0.7);
  color: var(--texto);
  background:
    radial-gradient(120% 90% at 85% 60%, #1b2f7a 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 0%, #142154 0%, transparent 60%),
    linear-gradient(180deg, #070b1a, #0a1230 60%, #070b1a);
  isolation: isolate;
}
.palco-cartao .pilula-seta {
  background: #2549b8;
}
.palco-cartao .tom {
  background: linear-gradient(100deg, #a9c1ff 5%, #c4b5fd 50%, #7dd3fc 95%);
  -webkit-background-clip: text;
  background-clip: text;
}
.atmosfera {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.atmosfera::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
.luz {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.luz-1 {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  right: -8%;
  top: 8%;
  background: radial-gradient(closest-side, #3b63d6, transparent);
}
.luz-2 {
  width: 30vw;
  height: 30vw;
  max-width: 420px;
  max-height: 420px;
  left: 30%;
  bottom: -10%;
  background: radial-gradient(closest-side, #6d4cf0, transparent);
  opacity: 0.4;
}
.luz-3 {
  width: 22vw;
  height: 22vw;
  max-width: 300px;
  max-height: 300px;
  left: -6%;
  top: 20%;
  background: radial-gradient(closest-side, #0ea5e9, transparent);
  opacity: 0.3;
}
.luz-4 {
  width: 14vw;
  height: 14vw;
  max-width: 200px;
  max-height: 200px;
  right: 30%;
  top: -4%;
  background: radial-gradient(closest-side, #c4b5fd, transparent);
  opacity: 0.35;
}
.fios {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgb(169 193 255 / 0.28);
  stroke-width: 1;
}
.fios path {
  stroke-dasharray: 6 10;
}
@media (prefers-reduced-motion: no-preference) {
  .luz-1 {
    animation: passear 18s ease-in-out infinite alternate;
  }
  .luz-2 {
    animation: passear 22s ease-in-out -6s infinite alternate-reverse;
  }
  .luz-3 {
    animation: passear 26s ease-in-out -10s infinite alternate;
  }
  .luz-4 {
    animation: passear 20s ease-in-out -3s infinite alternate-reverse;
  }
  .fios path {
    animation: fluir 30s linear infinite;
  }
  .fios path:nth-child(even) {
    animation-duration: 42s;
    animation-direction: reverse;
  }
}
@keyframes passear {
  to {
    transform: translate(-8vw, 6vh) scale(1.15);
  }
}
@keyframes fluir {
  to {
    stroke-dashoffset: -480;
  }
}

/* Logo em 3D dentro da bolha: 14 camadas empilhadas em profundidade fazem a espessura, e o conjunto
   gira devagar de um lado para o outro. */
.logo3d {
  position: relative;
  width: 26%;
  height: 36%;
  perspective: 900px;
}
.logo3d-giro {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(-24deg) rotateX(6deg);
}
.logo3d svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(calc(var(--z) * 1.6px - 11px));
  color: color-mix(in srgb, #ffffff calc(var(--z) * 7%), #5b7be0);
}
.logo3d svg:last-child {
  color: #fff;
  filter: drop-shadow(0 0 18px rgb(255 255 255 / 0.35));
}
@media (prefers-reduced-motion: no-preference) {
  .logo3d-giro {
    animation: girar3d 9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
}
@keyframes girar3d {
  0% {
    transform: rotateY(-38deg) rotateX(8deg) translateY(0);
  }
  50% {
    transform: rotateY(38deg) rotateX(-4deg) translateY(-10px);
  }
  100% {
    transform: rotateY(-38deg) rotateX(8deg) translateY(0);
  }
}

/* Cartões embaixo da bolha: "Seus dados" (cor) e a receita do ano (vidro, com gráfico de verdade). */
.palco-arte {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: 100%;
  max-width: 500px;
  justify-self: center;
}
.cartao-cor,
.vidro {
  position: relative;
  z-index: 4;
  min-width: 0;
  padding: 18px;
  border-radius: 22px;
}
.cartao-cor {
  background:
    radial-gradient(circle at 85% 0%, rgb(255 255 255 / 0.28), transparent 45%),
    linear-gradient(160deg, #3b63d6, #6d4cf0 70%, #7c5cff);
  color: #fff;
  box-shadow:
    0 30px 60px -24px rgb(61 76 220 / 0.7),
    inset 0 1px 0 rgb(255 255 255 / 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cartao-cor-icone {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.18);
  border: 1px solid rgb(255 255 255 / 0.3);
}
.cartao-cor-icone svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.cartao-cor-titulo {
  margin-top: 4px;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.cartao-cor-pe {
  font-size: 0.8rem;
  line-height: 1.4;
  opacity: 0.85;
}
.etiqueta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(14 19 32 / 0.55);
  color: #fff;
  font-size: 0.72rem;
}
.etiqueta svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #86efac;
  stroke-width: 2.6;
}
.vidro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.05));
  border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    var(--sombra),
    inset 0 1px 0 rgb(255 255 255 / 0.15);
}
.vidro-topo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}
.vidro-titulo {
  font-size: 0.8rem;
  color: var(--texto-fraco);
  white-space: nowrap;
}
.selo-alta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgb(34 197 94 / 0.16);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 600;
}
.selo-alta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
.vidro-valor {
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.vidro-valor small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--texto-fraco);
}
.grafico-receita {
  width: 100%;
  height: auto;
  overflow: visible;
}
.grafico-receita {
  stroke: none;
  fill: none;
}
.grafico-receita .barra {
  fill: url(#g-barra);
  stroke: none;
}
.grafico-receita .barra-prev {
  fill: rgb(196 211 255 / 0.08);
  stroke: rgb(196 211 255 / 0.55);
  stroke-dasharray: 2.5 2.5;
  stroke-width: 1;
}
.grafico-base {
  stroke: rgb(255 255 255 / 0.15);
}
.linha-real,
.linha-prev {
  fill: none;
  stroke: #e0e7ff;
  stroke-width: 2;
  stroke-linecap: round;
}
.linha-prev {
  stroke: #86efac;
  stroke-dasharray: 4 4;
}
.ponto-fim {
  fill: #86efac;
  stroke: none;
}
.ponto-fim-halo {
  fill: rgb(134 239 172 / 0.25);
  stroke: none;
}
.grafico-receita text {
  fill: var(--texto-fraco);
  stroke: none;
  font-size: 8px;
  font-weight: 400;
}
.vidro-legenda {
  display: flex;
  gap: 12px;
  font-size: 0.7rem;
  color: var(--texto-fraco);
}
.vidro-legenda span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vidro-legenda i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(#c4d3ff, #7c5cff);
}
.vidro-legenda .cor-prev {
  background: none;
  border: 1px dashed rgb(196 211 255 / 0.8);
}
@media (max-width: 999px) {
  .cartao-cor,
  .vidro {
    padding: 14px;
  }
}
@media (max-width: 380px) {
  .palco-arte {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .flutua {
    animation: flutuar 7s ease-in-out infinite;
  }
  .flutua-2 {
    animation-duration: 8.5s;
    animation-delay: -3s;
  }
}
@keyframes flutuar {
  50% {
    transform: translateY(-12px);
  }
}

/* Entrada do título linha por linha (só com JavaScript e sem pedido de menos movimento) */
@media (prefers-reduced-motion: no-preference) {
  .js .linha > span {
    transform: translateY(105%);
    transition: transform 1s cubic-bezier(0.2, 0.75, 0.15, 1);
  }
  .js .carregada .linha > span {
    transform: none;
  }
  .js .linha:nth-child(2) > span {
    transition-delay: 0.1s;
  }
  .js .linha:nth-child(3) > span {
    transition-delay: 0.2s;
  }
}

/* Janelas com telas do app */
figure {
  margin: 0;
}
.janela {
  border-radius: 18px;
  overflow: hidden;
  background: var(--cartao);
  border: 1px solid var(--borda);
  box-shadow: var(--sombra-forte);
}
.janela-barra {
  display: flex;
  gap: 6px;
  padding: 11px 14px;
  background: var(--superficie);
  border-bottom: 1px solid var(--borda);
}
.janela-barra i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--borda);
}

/* Seções */
.secao {
  padding-top: 96px;
  padding-bottom: 8px;
}
@media (min-width: 900px) {
  .secao {
    padding-top: 140px;
  }
}
.cabeca-secao {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
@media (min-width: 900px) {
  .cabeca-secao {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
    gap: 48px;
    margin-bottom: 56px;
  }
}
.sobretitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--primaria);
  font-weight: 500;
  font-size: 0.85rem;
}
.sobretitulo::before {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
}
.titulo-secao {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--texto-suave);
  margin-top: 18px;
  max-width: 40rem;
}
.cabeca-secao .lead {
  margin-top: 0;
}
.miudo {
  font-size: 0.85rem;
  color: var(--texto-fraco);
  margin-top: 12px;
}
h3 {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Painel escuro (privacidade e chamada final) */
#privacidade {
  margin-top: 96px;
}
.painel-escuro {
  position: relative;
  overflow: hidden;
  background: var(--escuro);
  color: #fff;
  border-radius: 32px;
  padding: 56px 20px;
}
@media (min-width: 720px) {
  .painel-escuro {
    border-radius: 40px;
    padding: 96px 64px;
  }
}
.painel-conteudo {
  position: relative;
  z-index: 1;
}
.painel-escuro .sobretitulo {
  color: #a9c1ff;
}
.painel-escuro .lead {
  color: rgb(255 255 255 / 0.72);
}
.bolha-fundo {
  inset: auto;
  right: -12%;
  top: -18%;
  width: 62%;
  aspect-ratio: 1;
  opacity: 0.55;
  filter: blur(4px) saturate(1.2);
}
.fluxo {
  display: grid;
  gap: 12px;
  margin: 48px 0 24px;
}
@media (min-width: 760px) {
  .fluxo {
    grid-template-columns: 1fr minmax(120px, 0.6fr) 1fr;
    gap: 0;
    align-items: center;
  }
}
.fluxo-no {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  border-radius: 22px;
  background: rgb(255 255 255 / 0.06);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.fluxo-no > span:last-child {
  color: rgb(255 255 255 / 0.6);
  font-size: 0.92rem;
}
.fluxo-destaque {
  border-color: rgb(169 193 255 / 0.6);
  background: rgb(37 73 184 / 0.25);
}
.fluxo-icones {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  color: #a9c1ff;
}
.fluxo-icones svg {
  width: 30px;
  height: 30px;
}
.fluxo-linha {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 56px;
}
.fluxo-linha::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  border-left: 1.5px dashed rgb(169 193 255 / 0.7);
}
@media (min-width: 760px) {
  .fluxo-linha::before {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    border-left: 0;
    border-top: 1.5px dashed rgb(169 193 255 / 0.7);
  }
}
.fluxo-linha span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  color: #0e1320;
  font-size: 0.8rem;
  font-weight: 500;
}
.fluxo-linha svg {
  width: 14px;
  height: 14px;
}
@media (prefers-reduced-motion: no-preference) {
  .fluxo-linha::before {
    animation: correr 1.6s linear infinite;
  }
}
@keyframes correr {
  50% {
    opacity: 0.45;
  }
}
.duas {
  display: grid;
  gap: 16px;
}
@media (min-width: 760px) {
  .duas {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
.vidro-escuro {
  padding: 28px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.05);
  border: 1px solid rgb(255 255 255 / 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.vidro-escuro-destaque {
  background: linear-gradient(160deg, rgb(59 99 214 / 0.35), rgb(109 76 240 / 0.25));
  border-color: rgb(169 193 255 / 0.4);
}
.vidro-escuro h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.vidro-escuro h3 svg {
  width: 22px;
  height: 22px;
  color: #a9c1ff;
}
.vidro-escuro p {
  color: rgb(255 255 255 / 0.7);
  margin-top: 16px;
}
.vidro-escuro .lista li {
  color: rgb(255 255 255 / 0.78);
}
.vidro-escuro .lista strong {
  color: #fff;
}

/* Listas com ícone */
.lista {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.lista li {
  position: relative;
  padding-left: 32px;
  color: var(--texto-suave);
}
.lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}
.lista-check li::before {
  background-color: var(--sucesso-fundo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.lista-ponto li::before {
  background: rgb(169 193 255 / 0.25);
  box-shadow: inset 0 0 0 7px transparent;
}
.lista-ponto li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a9c1ff;
}
.vidro-escuro .lista-check li::before {
  background-color: rgb(74 222 128 / 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* Tour */
.abas {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 4px 16px 16px;
  scroll-snap-type: x proximity;
}
.abas::-webkit-scrollbar {
  display: none;
}
@media (min-width: 900px) {
  .abas {
    flex-wrap: wrap;
    margin: 0;
    padding: 4px 0 20px;
  }
}
.abas button {
  flex: none;
  scroll-snap-align: start;
  font: inherit;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--texto-suave);
  background: var(--cartao);
  border: 1px solid var(--borda);
  border-radius: 999px;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.abas button:hover {
  color: var(--texto);
}
.abas button[aria-selected="true"] {
  background: var(--texto);
  border-color: var(--texto);
  color: var(--cartao);
}
.tour-painel {
  position: relative;
  display: grid;
  gap: 16px;
}
@media (min-width: 1000px) {
  .tour-painel {
    display: block;
  }
  .tour-texto {
    position: absolute;
    left: -16px;
    bottom: 32px;
    z-index: 2;
    max-width: 380px;
  }
  .janela-tour {
    margin-left: 18%;
  }
}
.tour-texto p {
  color: var(--texto-suave);
  margin-top: 10px;
}
.janela-tour img {
  transition: opacity 0.25s;
}
.janela-tour img.trocando {
  opacity: 0;
}

/* Recursos */
.recursos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  background: var(--borda);
  border: 1px solid var(--borda);
  border-radius: 28px;
  overflow: hidden;
}
.recursos li {
  background: var(--cartao);
  padding: 28px;
  color: var(--texto-suave);
  font-size: 0.94rem;
  transition: background 0.25s;
}
.recursos li:hover {
  background: var(--superficie);
}
.recursos svg {
  width: 28px;
  height: 28px;
  color: var(--primaria);
  stroke-width: 1.4;
  transition: transform 0.3s;
}
.recursos li:hover svg {
  transform: translateY(-3px) scale(1.06);
}
.recursos strong {
  display: block;
  color: var(--texto);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 18px 0 6px;
}

/* Preço */
.preco {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .preco {
    grid-template-columns: 1.15fr 1fr;
    gap: 72px;
  }
}
.preco .lista {
  margin-top: 28px;
}
.preco-palco {
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px 0;
}
.bolha-preco {
  inset: auto;
  width: 80%;
  aspect-ratio: 1;
  opacity: 0.85;
}
.cartao-preco {
  position: relative;
  width: min(100%, 400px);
  padding: 32px 28px 28px;
  border-radius: 28px;
  background: var(--vidro);
  border: 1px solid var(--vidro-borda);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: var(--sombra-forte);
  text-align: center;
}
.preco-faixa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--sucesso-fundo);
  color: var(--sucesso);
  font-size: 0.82rem;
  font-weight: 500;
}
.valor {
  margin-top: 16px;
  font-size: 5rem;
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
}
.moeda {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 6px;
  letter-spacing: 0;
}
.periodo {
  margin-top: 6px;
  font-weight: 500;
}
.por-mes {
  color: var(--texto-fraco);
  font-size: 0.88rem;
}
.gratis {
  margin: 20px 0;
  padding: 12px;
  border-radius: 16px;
  background: var(--sucesso-fundo);
  color: var(--sucesso);
  font-size: 0.92rem;
}

/* Passos */
.passos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  counter-reset: passo;
}
@media (min-width: 760px) {
  .passos {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.passos li {
  counter-increment: passo;
  position: relative;
  padding: 28px;
  border-radius: 24px;
  background: var(--cartao);
  border: 1px solid var(--borda);
  color: var(--texto-suave);
  overflow: hidden;
}
.passos li::before {
  content: "0" counter(passo);
  display: block;
  font-size: 3.2rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 28px;
  background: linear-gradient(100deg, var(--primaria), #7c5cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.passos strong {
  display: block;
  color: var(--texto);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* Dúvidas */
.duvidas {
  display: grid;
  gap: 32px;
}
@media (min-width: 900px) {
  .duvidas {
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
  }
}
details {
  border-bottom: 1px solid var(--borda);
}
details:first-of-type {
  border-top: 1px solid var(--borda);
}
summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.05rem;
  padding: 22px 0;
}
summary::-webkit-details-marker {
  display: none;
}
summary svg {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: var(--superficie);
  color: var(--primaria);
  transition:
    transform 0.25s,
    background 0.25s;
}
details[open] summary svg {
  transform: rotate(45deg);
  background: var(--primaria-clara);
}
details p {
  padding: 0 48px 22px 0;
  color: var(--texto-suave);
}

/* Chamada final */
.chamada {
  margin-top: 120px;
  text-align: center;
}
.chamada .lead {
  margin: 18px auto 0;
}
/* Fundo da chamada final: vídeo da psicóloga usando o Psixia (feito com IA pelo Bruno, sem som). Só carrega
   e toca quando a seção aparece na tela. */
.video-chamada {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 45%;
}
.veu-chamada {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgb(7 11 26 / 0.62), rgb(7 11 26 / 0.3) 70%),
    linear-gradient(180deg, rgb(7 11 26 / 0.1), rgb(7 11 26 / 0.45));
}
.chamada {
  min-height: 520px;
  display: grid;
  align-content: center;
}

/* Convite para o Manifesto (página manifesto.html) */
.convite-manifesto {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 40px 24px;
  border-radius: 32px;
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(124 92 255 / 0.5), transparent 60%),
    linear-gradient(150deg, #13204d, #0b0f1c);
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s;
}
@media (min-width: 720px) {
  .convite-manifesto {
    padding: 64px;
  }
}
.convite-manifesto:hover {
  transform: translateY(-4px);
}
.convite-manifesto .sobretitulo {
  color: #a9c1ff;
}
.convite-manifesto-titulo {
  position: relative;
  max-width: 24ch;
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.convite-manifesto-pe {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  color: rgb(255 255 255 / 0.78);
  font-weight: 500;
}
.convite-manifesto .pilula-seta svg {
  width: 18px;
  height: 18px;
}
.convite-manifesto:hover .pilula-seta {
  transform: rotate(45deg);
}
.convite-manifesto-luz {
  position: absolute;
  right: -10%;
  bottom: -60%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(125 211 252 / 0.35), transparent);
}

/* Rodapé */
.rodape {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px;
}
.rodape nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.rodape nav a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.92rem;
}
.rodape nav a:hover {
  color: var(--primaria);
}
.rodape .miudo {
  flex-basis: 100%;
  margin: 0;
}

/* Entrada suave ao rolar */
@media (prefers-reduced-motion: no-preference) {
  .js .revelar {
    opacity: 0;
    transform: translateY(32px);
    transition:
      opacity 0.9s ease-out,
      transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .js .revelar.visivel {
    opacity: 1;
    transform: none;
  }
}
.palco-arte {
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Fundo da abertura: vídeo de uma psicóloga em sessão online (feito com IA, sem som), atrás de um véu
   escuro que mantém o texto legível. */
.video-fundo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  opacity: 0.9;
}
.veu {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(7 11 26 / 0.82) 0%, rgb(7 11 26 / 0.58) 45%, rgb(7 11 26 / 0.4) 100%),
    linear-gradient(
      180deg,
      rgb(7 11 26 / 0.6),
      transparent 30%,
      transparent 70%,
      rgb(7 11 26 / 0.8)
    );
}

/* Funções em sequência: a tela fica parada à esquerda e troca conforme cada texto passa. */
.historia {
  display: grid;
  gap: 24px;
}
.historia-palco {
  display: none;
}
.passo-historia {
  padding: 28px 0;
  border-top: 1px solid var(--borda);
}
.passo-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primaria);
  margin-bottom: 12px;
}
.passo-num span {
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primaria-clara);
}
.passo-historia h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.passo-historia > p:not(.passo-num) {
  margin-top: 12px;
  color: var(--texto-suave);
  max-width: 34rem;
}
.passo-lista {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: 36rem;
  display: grid;
  gap: 10px;
}
.passo-lista li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.5;
}
.passo-lista svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  padding: 2px;
  border-radius: 50%;
  background: var(--primaria-clara);
  fill: none;
  stroke: var(--primaria);
  stroke-width: 2.4;
}
.passo-lista strong {
  color: var(--texto);
  font-weight: 600;
}
.passo-nota {
  margin-top: 14px;
  max-width: 36rem;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--primaria-clara);
  color: var(--texto);
  font-size: 0.85rem;
  line-height: 1.45;
}
.passo-imagem {
  margin-top: 20px;
}
@media (min-width: 1000px) {
  .historia {
    grid-template-columns: 1.35fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .historia-palco {
    display: block;
    position: sticky;
    top: 12vh;
  }
  .historia-palco .janela {
    position: relative;
  }
  .bolha-historia {
    inset: auto;
    left: 10%;
    top: 0;
    width: 80%;
    aspect-ratio: 1;
    opacity: 0.35;
    filter: blur(40px);
  }
  .historia-telas img {
    transition:
      opacity 0.35s,
      transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .historia-telas img.trocando {
    opacity: 0;
    transform: scale(1.02);
  }
  .passo-historia {
    min-height: 62vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top: 0;
    opacity: 0.35;
    transition: opacity 0.4s;
  }
  .passo-historia.ativo {
    opacity: 1;
  }
  .passo-imagem {
    display: none;
  }
}
.janela-titulo {
  margin-left: 12px;
  font-size: 0.78rem;
  color: var(--texto-fraco);
}
.historia-pontos {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 20px 0 0;
}
.historia-pontos li {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--borda);
  transition:
    width 0.3s,
    background 0.3s;
}
.historia-pontos li.ativo {
  width: 28px;
  background: var(--primaria);
}

/* Desempenho ao rolar no celular e no tablet (Bruno, 02/11: rolando rápido o site travava e as
   figuras saíam do lugar). Nas telas de toque tiramos o que obriga o navegador a redesenhar a cada
   quadro: desfoque do fundo por trás dos cartões (o vídeo muda o tempo todo), o granulado misturado
   por cima do vídeo, as luzes desfocadas, as linhas animadas e a cor girando da bolha. A bolha, o
   logo 3D e o vídeo continuam. As seções entram só com um esmaecer curto, sem deslizar. */
@media (max-width: 999px), (pointer: coarse) {
  .pilula-contorno,
  .pilula-vidro,
  .vidro,
  .fluxo-no,
  .vidro-escuro,
  .cartao-preco {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .vidro {
    background: rgb(22 30 58 / 0.86);
  }
  .pilula-contorno,
  .pilula-vidro {
    background: rgb(22 30 58 / 0.7);
  }
  .atmosfera::after,
  .luz,
  .fios,
  .bolha::after {
    display: none;
  }
  .bolha,
  .flutua,
  .flutua-2 {
    animation: none;
  }
  .js .revelar {
    transform: none;
    transition: opacity 0.4s ease-out;
  }
}
/* Fora da tela, nada da abertura se mexe (vídeo pausado, animações paradas). */
.palco.parado *,
.palco.parado *::before,
.palco.parado *::after {
  animation-play-state: paused;
}

/* Aparelhos: computador, notebook, tablet e celular desenhados em CSS, com a tela "viva" e o selo de
   sincronizado passando de um para o outro. Só transform e opacity, leve no celular. */
.aparelhos-grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  align-items: end;
  padding: 24px 0 8px;
}
@media (min-width: 900px) {
  .aparelhos-grade {
    grid-template-columns: 1.6fr 1.4fr 0.8fr 0.46fr;
    gap: 40px;
  }
}
.aparelho {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.aparelho figcaption {
  margin-top: 18px;
  font-weight: 500;
  font-size: 0.95rem;
}
.ap-corpo {
  position: relative;
  display: block;
  width: 100%;
  background: #121a33;
  box-shadow: var(--sombra-forte);
}
.ap-tela {
  display: block;
  position: relative;
  overflow: hidden;
  height: 100%;
  background: var(--cartao);
}
.ap-computador .ap-corpo {
  aspect-ratio: 16 / 10;
  padding: 8px;
  border-radius: 14px;
}
.ap-computador .ap-tela {
  border-radius: 7px;
}
.ap-pe {
  display: block;
  width: 18%;
  height: 26px;
  background: linear-gradient(#1b2547, #121a33);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}
.ap-pe::after {
  content: "";
  display: block;
}
.ap-computador .ap-pe {
  border-bottom: 6px solid #121a33;
  border-radius: 0 0 4px 4px;
  width: 30%;
}
.ap-notebook .ap-corpo {
  width: 86%;
  aspect-ratio: 16 / 10;
  padding: 7px;
  border-radius: 12px 12px 0 0;
}
.ap-notebook .ap-tela {
  border-radius: 5px;
}
.ap-base {
  display: block;
  width: 100%;
  height: 12px;
  border-radius: 2px 2px 12px 12px;
  background: linear-gradient(#2a3560, #121a33);
  box-shadow: var(--sombra);
}
.ap-tablet .ap-corpo {
  width: 72%;
  aspect-ratio: 3 / 4;
  padding: 9px;
  border-radius: 20px;
}
.ap-tablet .ap-tela {
  border-radius: 10px;
}
.ap-celular .ap-corpo {
  width: 62%;
  aspect-ratio: 9 / 19;
  padding: 5px;
  border-radius: 20px;
}
.ap-celular .ap-tela {
  border-radius: 15px;
}
@media (min-width: 900px) {
  .ap-notebook .ap-corpo,
  .ap-tablet .ap-corpo,
  .ap-celular .ap-corpo {
    width: 86%;
  }
}
/* A interface de mentira dentro de cada tela */
.ap-ui {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 7%;
  padding: 7%;
}
.ap-topo {
  display: flex;
  align-items: center;
  gap: 6%;
}
.ap-topo b {
  width: 9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--primaria);
}
.ap-topo em {
  height: 6px;
  width: 40%;
  border-radius: 6px;
  background: var(--borda);
}
.ap-cartoes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6%;
}
.ap-cartoes i {
  height: 18px;
  border-radius: 5px;
  background: var(--superficie);
  border: 1px solid var(--borda);
}
.ap-barras {
  display: flex;
  align-items: flex-end;
  gap: 6%;
  min-height: 0;
}
.ap-barras i {
  flex: 1;
  height: calc(40% + var(--i) * 12%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(#7c9bff, #2549b8);
  transform-origin: bottom;
}
.ap-linhas {
  display: grid;
  gap: 5px;
}
.ap-linhas i {
  height: 5px;
  border-radius: 5px;
  background: var(--borda);
}
.ap-linhas i:last-child {
  width: 60%;
}
.ap-celular .ap-ui,
.ap-tablet .ap-ui {
  grid-template-rows: auto auto 1fr auto auto;
}
.ap-celular .ap-cartoes {
  grid-template-columns: 1fr 1fr;
}
.ap-celular .ap-cartoes i:last-child {
  display: none;
}
.ap-celular .ap-cartoes i,
.ap-tablet .ap-cartoes i {
  height: 14px;
}
.ap-celular .ap-topo em {
  height: 4px;
}
/* Selo que aparece num aparelho de cada vez */
.ap-sync {
  position: absolute;
  top: -14px;
  right: 6%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0e1320;
  color: #fff;
  font-size: 0.72rem;
  white-space: nowrap;
  box-shadow: var(--sombra);
  opacity: 0;
}
.ap-sync svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: #86efac;
  stroke-width: 2.6;
}
.ap-celular .ap-sync {
  right: 50%;
  transform: translateX(50%);
}
@media (prefers-reduced-motion: no-preference) {
  .aparelho {
    animation: flutuar 6s ease-in-out infinite;
    animation-delay: calc(var(--d) * -1.5s);
  }
  .ap-barras i {
    animation: barra 3.2s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * -0.6s + var(--d) * -0.4s);
  }
  .ap-sync {
    animation: sincroniza 8s ease-in-out infinite;
    animation-delay: calc(var(--d) * 2s);
  }
  .aparelhos-grade:not(.visivel) * {
    animation-play-state: paused;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-sync {
    opacity: 1;
  }
}
@keyframes barra {
  from {
    transform: scaleY(0.45);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes sincroniza {
  0%,
  100% {
    opacity: 0;
    translate: 0 6px;
  }
  6%,
  22% {
    opacity: 1;
    translate: 0 0;
  }
  28% {
    opacity: 0;
    translate: 0 -4px;
  }
}

/* O que é cifrado: dentro do painel de privacidade, um cofre que se abre ao aparecer na tela
   e revela a explicação (pedido do Bruno, 02/11). O título fica do lado de fora do cofre. */
.cofre-bloco {
  margin-top: 72px;
  padding-top: 56px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}
.cofre-cabeca {
  max-width: 44rem;
  margin-bottom: 32px;
}
.cofre-titulo {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.cofre-cabeca .lead {
  margin-top: 16px;
}
.cofre {
  position: relative;
  perspective: 1800px;
}
.cofre-dentro {
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow:
    inset 0 0 0 6px rgb(0 0 0 / 0.25),
    inset 0 24px 60px -30px rgb(0 0 0 / 0.8);
}
@media (min-width: 720px) {
  .cofre-dentro {
    padding: 32px;
  }
}

/* A porta do cofre: aço escuro com roda, trincos e dobradiças. */
.cofre-porta {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .js .cofre-porta {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background:
      radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.1), transparent 55%),
      linear-gradient(150deg, #2c3a66, #18203d 60%, #121a33);
    border: 1px solid rgb(169 193 255 / 0.3);
    box-shadow:
      0 30px 60px -30px rgb(0 0 0 / 0.9),
      inset 0 1px 0 rgb(255 255 255 / 0.15);
    transform-origin: left center;
    transition:
      transform 1.3s cubic-bezier(0.55, 0, 0.25, 1) 1.1s,
      opacity 0.5s ease 2.1s,
      visibility 0s linear 2.6s;
  }
  .js .cofre-dentro {
    opacity: 0.2;
    transition: opacity 0.8s ease 1.5s;
  }
  .js .cofre.visivel .cofre-dentro {
    opacity: 1;
  }
  .js .cofre.visivel .cofre-porta {
    transform: rotateY(-108deg);
    opacity: 0;
    visibility: hidden;
  }
  .js .cofre.visivel .cofre-roda {
    transform: rotate(-300deg);
  }
  .js .cofre.visivel .cofre-trincos i {
    transform: translateX(-26px);
  }
}
.cofre-placa {
  position: relative;
  display: grid;
  place-items: center;
  width: min(78%, 520px);
  aspect-ratio: 1.5;
  max-height: 80%;
  border-radius: 24px;
  border: 2px solid rgb(169 193 255 / 0.22);
  background: linear-gradient(150deg, rgb(255 255 255 / 0.06), rgb(0 0 0 / 0.2));
  box-shadow:
    inset 0 2px 0 rgb(255 255 255 / 0.08),
    0 12px 30px -16px rgb(0 0 0 / 0.8);
}
.cofre-roda {
  position: relative;
  width: clamp(110px, 30%, 170px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #a9c1ff;
  box-shadow:
    0 0 0 6px rgb(169 193 255 / 0.12),
    0 0 40px rgb(91 124 250 / 0.45);
  transition: transform 1.1s cubic-bezier(0.5, 0, 0.3, 1);
}
.cofre-roda i {
  position: absolute;
  left: 50%;
  top: -14%;
  width: 8px;
  height: 128%;
  margin-left: -4px;
  border-radius: 4px;
  background: #a9c1ff;
}
.cofre-roda i:nth-child(2) {
  transform: rotate(60deg);
}
.cofre-roda i:nth-child(3) {
  transform: rotate(120deg);
}
.cofre-roda b {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: linear-gradient(150deg, #5b7cfa, #2549b8);
  border: 3px solid #a9c1ff;
}
.cofre-trincos {
  position: absolute;
  right: -2px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  gap: 18px;
}
.cofre-trincos i {
  display: block;
  width: 34px;
  height: 12px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(#c9d6ff, #7d93d6);
  transition: transform 0.6s ease 0.5s;
}
.cofre-dobradica {
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 18% 0;
}
.cofre-dobradica i {
  display: block;
  width: 10px;
  height: 52px;
  border-radius: 5px;
  background: linear-gradient(90deg, #7d93d6, #c9d6ff);
}

/* O conteúdo do cofre */
.cifra-demo {
  display: grid;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 860px) {
  .cifra-demo {
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
  }
}
.cifra-lado {
  padding: 22px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.14);
}
.cifra-escuro {
  background: rgb(0 0 0 / 0.35);
  border-color: rgb(169 193 255 / 0.25);
}
.cifra-rotulo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.6);
  margin-bottom: 14px;
}
.cifra-rotulo svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.cifra-texto {
  font-size: 1.05rem;
  line-height: 1.6;
}
.cifra-embaralhado {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.98rem;
  color: #a9c1ff;
  word-break: break-all;
}
.cifra-meio {
  display: grid;
  place-items: center;
}
.cifra-meio span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primaria);
  color: #fff;
  box-shadow:
    0 0 0 6px rgb(91 124 250 / 0.18),
    0 16px 32px -12px rgb(37 73 184 / 0.9);
}
.cifra-meio svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
@media (max-width: 859px) {
  .cifra-meio span {
    width: 44px;
    height: 44px;
  }
}
.cifra-passos {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .cifra-passos {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.cifra-passos li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgb(255 255 255 / 0.68);
  font-size: 0.95rem;
  line-height: 1.5;
}
.cifra-passos span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(91 124 250 / 0.22);
  color: #a9c1ff;
  font-weight: 600;
  margin-bottom: 4px;
}
.cifra-passos strong {
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
}
.cifra-analogia {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgb(59 99 214 / 0.35), rgb(109 76 240 / 0.25));
  border: 1px solid rgb(169 193 255 / 0.3);
  color: #fff;
  line-height: 1.55;
}
.cifra-analogia svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: #a9c1ff;
  stroke-width: 1.8;
}

/* Por que custa pouco: sem servidor nosso (pedido do Bruno, 02/11). */
.economia {
  margin-top: 72px;
  padding: 32px 22px;
  border-radius: 32px;
  background: var(--cartao);
  border: 1px solid var(--borda);
  box-shadow: var(--sombra);
}
@media (min-width: 720px) {
  .economia {
    padding: 48px;
  }
}
.economia-cabeca {
  max-width: 46rem;
}
.economia-cabeca h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.economia-cabeca p {
  margin-top: 14px;
  color: var(--texto-suave);
  font-size: 1.05rem;
}
.economia-lista {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 860px) {
  .economia-lista {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.economia-lista li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--primaria) 6%, transparent);
  color: var(--texto-suave);
  font-size: 0.95rem;
  line-height: 1.5;
}
.economia-lista svg {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
  fill: none;
  stroke: var(--primaria);
  stroke-width: 1.7;
}
.economia-lista strong {
  color: var(--texto);
  font-weight: 600;
  font-size: 1.02rem;
}
.economia-aviso {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: 16px;
  background: color-mix(in srgb, #f59e0b 12%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
  color: var(--texto);
  font-size: 0.95rem;
  line-height: 1.5;
}
.economia-aviso svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  fill: none;
  stroke: #d97706;
  stroke-width: 1.8;
}
