/* TDA Digital · variação C, "Ilha e Wallet" (08/10/2026).
   A Dynamic Island é o menu e a porta do formulário; a confirmação é um passe da Wallet.
   Usa comum/base.css (tokens, tipografia, botões, iPhone, entradas). Este arquivo só acrescenta.
   --mola-c recebe uma mola de verdade (linear() gerado em c.js); sem suporte, cai na cúbica da base. */

@property --p1 {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffffff;
}

@property --p2 {
  syntax: '<color>';
  inherits: true;
  initial-value: #f4f4f6;
}

:root {
  --mola-c: var(--mola);
  --mola-ilha: var(--mola);
  --pad-carrossel: max(var(--gutter), calc((100vw - 1120px) / 2 + var(--gutter)));
}

body.var-c {
  background: var(--branco);
}

.pular {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--texto);
  color: #fff;
  font-size: 15px;
  transition: top 0.2s var(--curva);
}

.pular:focus-visible {
  top: 12px;
}

/* Cores do passe por nicho (valem no passe, na folha e nos cartões de "Para quem"). */
[data-nicho] {
  --p1: #ffffff;
  --p2: #f4f4f6;
  --tinta: #3a3a3c;
}

[data-nicho='estetica'] {
  --p1: #fff4f8;
  --p2: #fbd9e6;
  --tinta: #b0245a;
}

[data-nicho='barbearia'] {
  --p1: #fcf7ef;
  --p2: #eddcbf;
  --tinta: #87561a;
}

[data-nicho='academia'] {
  --p1: #f2fbf6;
  --p2: #c9eedb;
  --tinta: #16774a;
}

[data-nicho='outro'] {
  --p1: #f3f8ff;
  --p2: #d3e5ff;
  --tinta: #0a5cc2;
}

/* =========================================================
   Auras do Apple Intelligence (derivam devagar)
   ========================================================= */
.aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.aura i {
  position: absolute;
  width: var(--tam, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  opacity: var(--o, 0.26);
  filter: blur(36px);
  will-change: transform;
  animation: deriva var(--dur, 22s) ease-in-out infinite alternate;
}

.aura i:nth-child(1) { --c: #3d8bff; --dur: 21s; }
.aura i:nth-child(2) { --c: #a35bf7; --dur: 26s; animation-delay: -6s; }
.aura i:nth-child(3) { --c: #f062c0; --dur: 24s; animation-delay: -11s; }
.aura i:nth-child(4) { --c: #ff9f3a; --dur: 29s; animation-delay: -3s; }

@keyframes deriva {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(6%, -5%, 0) scale(1.08); }
  66% { transform: translate3d(-5%, 4%, 0) scale(0.95); }
  100% { transform: translate3d(3%, 6%, 0) scale(1.04); }
}

.flutua {
  animation: flutua 7s ease-in-out infinite;
  will-change: transform;
}

.flutua-lenta {
  animation-duration: 9s;
  animation-delay: -2s;
}

@keyframes flutua {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(0.35deg); }
}

/* =========================================================
   1. Dynamic Island
   ========================================================= */
.ilha-zona {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 70;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.ilha {
  --ilha-aw: 688px;
  --ilha-ah: 112px;
  position: relative;
  width: var(--ilha-cw, 186px);
  height: 40px;
  border-radius: 20px;
  background: #000;
  color: #fff;
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 0 12px 32px -14px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.06) inset;
  transition:
    width 0.62s var(--mola-ilha),
    height 0.62s var(--mola-ilha),
    border-radius 0.62s var(--mola-ilha),
    opacity 0.25s ease,
    transform 0.35s var(--curva);
}

.ilha.aberta {
  width: var(--ilha-aw);
  height: var(--ilha-ah);
  border-radius: 30px;
}

.ilha.oculta {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
}

.ilha-compacta {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px 0 6px;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  border-radius: 20px;
}

.ilha-compacta:focus-visible,
.ilha-menu a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: -2px;
}

.ilha-anel {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
}

.ilha-anel svg {
  position: absolute;
  inset: 0;
  width: 30px;
  height: 30px;
  transform: rotate(-90deg);
}

.ilha-anel circle {
  fill: none;
  stroke-width: 2.2;
}

.anel-trilho {
  stroke: rgba(255, 255, 255, 0.16);
}

.anel-progresso {
  stroke: #fff;
  stroke-linecap: round;
  stroke-dasharray: 87.97;
  stroke-dashoffset: 87.97;
}

.ilha-anel img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.28);
}

.ilha-rotulos {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 40px;
}

.ilha-rotulo {
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: opacity 0.35s var(--curva), transform 0.5s var(--curva), filter 0.35s var(--curva);
}

.ilha-vivo {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

.ilha-vivo-ic {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--cor, var(--azul));
}

.ilha-vivo-ic svg {
  width: 12px;
  height: 12px;
}

.ilha.vivo .ilha-marca {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(4px);
}

.ilha.vivo .ilha-vivo {
  opacity: 1;
  transform: none;
  filter: none;
}

.ilha-onda {
  display: flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
  margin-left: auto;
  flex: none;
}

.ilha-onda i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--c);
  transform: scaleY(0.3);
  animation: onda var(--d, 0.9s) ease-in-out infinite alternate;
}

.ilha-onda i:nth-child(1) { --c: #3d8bff; --d: 0.82s; }
.ilha-onda i:nth-child(2) { --c: #7d6cf9; --d: 1.06s; animation-delay: -0.3s; }
.ilha-onda i:nth-child(3) { --c: #c25be0; --d: 0.74s; animation-delay: -0.5s; }
.ilha-onda i:nth-child(4) { --c: #f062c0; --d: 0.96s; animation-delay: -0.2s; }
.ilha-onda i:nth-child(5) { --c: #ff9f3a; --d: 1.12s; animation-delay: -0.6s; }

@keyframes onda {
  0% { transform: scaleY(0.25); }
  60% { transform: scaleY(0.9); }
  100% { transform: scaleY(0.5); }
}

.ilha-menu {
  position: absolute;
  top: 48px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0s 0.2s;
}

.ilha.aberta .ilha-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--curva) 0.12s, visibility 0s;
}

.ilha-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ilha-links li {
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity 0.3s ease, transform 0.4s var(--curva), filter 0.3s ease;
}

.ilha.aberta .ilha-links li {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: calc(0.12s + var(--i, 0) * 50ms);
}

.ilha-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.ilha-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ilha-cta {
  min-height: 44px;
  padding: 10px 20px;
  font-size: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.4s var(--curva), background-color 0.16s ease, box-shadow 0.16s ease;
}

.ilha.aberta .ilha-cta {
  opacity: 1;
  transform: none;
  transition-delay: 0.32s, 0.32s, 0s, 0s;
}

.ilha.aberta .ilha-cta:hover {
  transform: translateY(-2px);
  transition-delay: 0s;
}

/* A ilha mede o próprio menu (c.js, medirMenu): se links + botão cabem numa linha, abre na largura exata;
   se não cabem, vira .empilhado (links em grade 2×2 e botão embaixo). Texto nunca quebra dentro do item. */
.ilha-links a,
.ilha-cta {
  white-space: nowrap;
}

.ilha.empilhado .ilha-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.ilha.empilhado .ilha-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.ilha.empilhado .ilha-links a {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  justify-content: center;
}

.ilha.empilhado .ilha-cta {
  width: 100%;
  min-height: 48px;
}

/* =========================================================
   2. Hero
   ========================================================= */
.c-hero {
  position: relative;
  padding-top: 132px;
  text-align: center;
  overflow: clip;
}

.c-hero-texto {
  position: relative;
  z-index: 1;
}

.c-hero .t-hero {
  font-size: clamp(38px, 9.6vw, 92px);
  max-width: 9.4em;
  margin: 0 auto;
}

.c-hero .t-lead {
  max-width: 640px;
  margin: 24px auto 0;
}

.par-botoes {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.par-botoes.esquerda {
  justify-content: flex-start;
}

.c-hero-palco {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-top: 72px;
  padding-bottom: 24px;
}

.aura-hero {
  top: 34%;
}

.aura-hero i:nth-child(1) { left: calc(50% - 470px); top: 6%; }
.aura-hero i:nth-child(2) { left: calc(50% - 40px); top: 0; }
.aura-hero i:nth-child(3) { left: calc(50% - 300px); top: 30%; }
.aura-hero i:nth-child(4) { left: calc(50% - 60px); top: 36%; }

.iphone-hero {
  --w: 320px;
}

/* Tela bloqueada */
.tela-bloqueio {
  --u: calc(var(--w) / 320);
  background:
    radial-gradient(120% 60% at 20% 0%, #dfe9fb 0%, transparent 60%),
    radial-gradient(100% 60% at 100% 100%, #f4e9f4 0%, transparent 60%),
    linear-gradient(180deg, #e8eef8, #f3f1f6);
  text-align: center;
}

.status-ic {
  display: inline-flex;
  align-items: center;
  gap: calc(4 * var(--u, 1px));
}

.status-ic svg {
  height: calc(11 * var(--u, 1px));
  width: auto;
}

.bloqueio-data {
  position: absolute;
  top: calc(64 * var(--u));
  left: 0;
  right: 0;
  font-size: calc(15 * var(--u));
  font-weight: 600;
  color: rgba(29, 29, 31, 0.72);
  letter-spacing: -0.01em;
}

.bloqueio-data::first-letter {
  text-transform: uppercase;
}

.bloqueio-hora {
  position: absolute;
  top: calc(80 * var(--u));
  left: 0;
  right: 0;
  font-family: var(--display);
  font-size: calc(84 * var(--u));
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: rgba(29, 29, 31, 0.86);
  font-variant-numeric: tabular-nums;
}

.bloqueio-notifs {
  position: absolute;
  top: calc(206 * var(--u));
  left: calc(10 * var(--u));
  right: calc(10 * var(--u));
  display: flex;
  flex-direction: column;
  gap: calc(8 * var(--u));
  text-align: left;
}

.notif {
  display: grid;
  grid-template-columns: calc(32 * var(--u)) 1fr;
  gap: calc(10 * var(--u));
  align-items: center;
  padding: calc(10 * var(--u)) calc(12 * var(--u));
  border-radius: calc(18 * var(--u));
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.28), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  will-change: transform;
}

.notif img {
  width: calc(32 * var(--u));
  height: calc(32 * var(--u));
  border-radius: calc(8 * var(--u));
}

.notif-topo {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.notif-topo b {
  font-size: calc(13 * var(--u));
  font-weight: 600;
  letter-spacing: -0.01em;
}

.notif-topo span {
  margin-left: auto;
  font-size: calc(11 * var(--u));
  color: rgba(60, 60, 67, 0.6);
}

.notif p {
  font-size: calc(12.5 * var(--u));
  line-height: 1.3;
  color: #1d1d1f;
  letter-spacing: -0.005em;
}

.bloqueio-base {
  position: absolute;
  left: calc(36 * var(--u));
  right: calc(36 * var(--u));
  bottom: calc(30 * var(--u));
  display: flex;
  justify-content: space-between;
}

.bloqueio-bt {
  display: grid;
  place-items: center;
  width: calc(46 * var(--u));
  height: calc(46 * var(--u));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #1d1d1f;
}

.bloqueio-bt svg {
  width: calc(20 * var(--u));
  height: calc(20 * var(--u));
}

.indicador-home {
  position: absolute;
  bottom: calc(8 * var(--u));
  left: 50%;
  width: calc(112 * var(--u));
  height: calc(4.5 * var(--u));
  translate: -50% 0;
  border-radius: 99px;
  background: rgba(29, 29, 31, 0.82);
}

/* =========================================================
   3. Dor e solução: calendário com controle segmentado
   ========================================================= */
.c-dor-grade {
  display: grid;
  gap: 48px;
  align-items: center;
}

.c-dor-texto .t-lead {
  margin-top: 20px;
  max-width: 520px;
}

.dor-legenda {
  position: relative;
  margin-top: 32px;
  min-height: 52px;
}

.dor-legenda-item {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  opacity: 0;
  transform: translateY(8px);
  filter: blur(4px);
  transition: opacity 0.45s var(--curva), transform 0.6s var(--curva), filter 0.45s var(--curva);
}

.dor-legenda-item svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.dor-legenda-item[data-modo='hoje'] svg { color: var(--vermelho); }
.dor-legenda-item[data-modo='tda'] svg { color: var(--verde); }

#dor[data-modo='hoje'] .dor-legenda-item[data-modo='hoje'],
#dor[data-modo='tda'] .dor-legenda-item[data-modo='tda'] {
  opacity: 1;
  transform: none;
  filter: none;
}

.c-dor-objeto {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.segmentado {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 280px;
  padding: 3px;
  margin-bottom: 32px;
  border-radius: 12px;
  background: rgba(118, 118, 128, 0.12);
}

.segmentado button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--texto);
  transition: color 0.2s ease;
}

.segmentado button[aria-checked='true'] {
  font-weight: 600;
}

.segmentado button:active {
  transform: scale(0.97);
}

.segmentado-trilho {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 3px 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.5s var(--mola-c);
}

#dor[data-modo='tda'] .segmentado-trilho {
  transform: translateX(100%);
}

.iphone-agenda {
  --w: 320px;
}

.tela-agenda {
  --u: calc(var(--w) / 320);
  --hora: calc(50 * var(--u));
  background: #fff;
}

.tela-agenda .iphone-status {
  color: var(--texto);
}

.agenda-cab {
  position: absolute;
  top: calc(46 * var(--u));
  left: 0;
  right: 0;
  padding: 0 calc(12 * var(--u));
}

.agenda-voltar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--vermelho);
  font-size: calc(14 * var(--u));
  font-weight: 500;
}

.agenda-voltar svg {
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
}

.agenda-semana {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: calc(8 * var(--u));
  text-align: center;
}

.agenda-semana span {
  display: grid;
  justify-items: center;
  gap: calc(3 * var(--u));
  font-size: calc(9 * var(--u));
  font-weight: 600;
  color: var(--texto-3);
}

.agenda-semana b {
  display: grid;
  place-items: center;
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  border-radius: 50%;
  font-size: calc(14 * var(--u));
  font-weight: 500;
  color: var(--texto);
}

.agenda-semana .hoje b {
  background: var(--vermelho);
  color: #fff;
  font-weight: 700;
}

.agenda-dia {
  margin: calc(6 * var(--u)) calc(-12 * var(--u)) 0;
  padding-bottom: calc(8 * var(--u));
  border-bottom: 1px solid var(--linha);
  text-align: center;
  font-size: calc(11.5 * var(--u));
  font-weight: 600;
}

.agenda-dia::first-letter {
  text-transform: uppercase;
}

.agenda-corpo {
  position: absolute;
  top: calc(150 * var(--u));
  left: 0;
  right: 0;
  bottom: calc(10 * var(--u));
}

.agenda-hora {
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-left: calc(44 * var(--u));
}

.agenda-hora span {
  position: absolute;
  right: calc(100% + 6 * var(--u));
  top: calc(-6 * var(--u));
  font-size: calc(9 * var(--u));
  color: var(--texto-3);
  font-variant-numeric: tabular-nums;
}

.agenda-eventos {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(48 * var(--u));
  right: calc(10 * var(--u));
}

.ev {
  --cor: var(--azul);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--d, 1) * var(--hora) - 3 * var(--u));
  transform: translateY(calc(var(--t, 0) * var(--hora) + 1.5 * var(--u))) scale(var(--s, 1));
  transform-origin: 50% 0;
  opacity: var(--o, 1);
  padding: calc(4 * var(--u)) calc(8 * var(--u));
  border-radius: calc(6 * var(--u));
  background: color-mix(in srgb, var(--cor) 15%, #fff);
  box-shadow: inset calc(3 * var(--u)) 0 0 var(--cor);
  overflow: hidden;
  transition:
    transform 0.8s var(--mola-c),
    height 0.8s var(--mola-c),
    opacity 0.45s var(--curva);
}

.ev b {
  display: block;
  font-size: calc(10.5 * var(--u));
  font-weight: 600;
  line-height: 1.25;
  color: color-mix(in srgb, var(--cor) 62%, #000);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev small {
  display: block;
  font-size: calc(9 * var(--u));
  color: color-mix(in srgb, var(--cor) 45%, #3a3a3c);
  font-variant-numeric: tabular-nums;
}

.ev.azul { --cor: var(--azul); }
.ev.laranja { --cor: var(--laranja); }
.ev.verde { --cor: var(--verde); }
.ev.vermelho { --cor: var(--vermelho); }
.ev.teal { --cor: var(--teal); }
.ev.roxo { --cor: var(--roxo); }

.ev.ia {
  overflow: visible;
  background: #fff;
  box-shadow: none;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
}

.ev.ia .ev-ic {
  display: grid;
  place-items: center;
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
  border-radius: calc(6 * var(--u));
  background: var(--ia);
  color: #fff;
  flex: none;
}

.ev.ia .ev-ic svg {
  width: 62%;
  height: 62%;
}

.ev.ia b {
  font-size: calc(11.5 * var(--u));
}

.ev.ia b span {
  background: var(--ia);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ev.ia small {
  color: var(--texto-2);
}

.ev.livre {
  background: rgba(52, 199, 89, 0.06);
  box-shadow: inset 0 0 0 1.2px rgba(52, 199, 89, 0.45);
  border-radius: calc(6 * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: repeating-linear-gradient(135deg, rgba(52, 199, 89, 0.08) 0 6px, transparent 6px 12px);
}

.ev.livre b {
  color: #1f8f43;
  font-size: calc(11 * var(--u));
}

.curso-ia {
  position: absolute;
  left: calc(56 * var(--u));
  right: calc(18 * var(--u));
  top: calc(3.6 * var(--hora));
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(8 * var(--u));
  opacity: 0;
  transform: translateX(115%);
  transition: transform 0.8s var(--mola-c), opacity 0.4s ease;
  pointer-events: none;
}

.curso-ia.entra {
  opacity: 1;
  transform: none;
}

.curso-cartao {
  display: flex;
  align-items: center;
  gap: calc(9 * var(--u));
  width: 100%;
  padding: calc(9 * var(--u)) calc(11 * var(--u));
  border-radius: calc(12 * var(--u));
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35);
}

.curso-ia.treme .curso-cartao {
  animation: treme 0.5s var(--curva);
}

.curso-ic {
  --cor: #8e5bf0;
  background: var(--ia);
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  border-radius: calc(8 * var(--u));
}

.curso-txt {
  display: grid;
  text-align: left;
}

.curso-txt b {
  font-size: calc(13 * var(--u));
  font-weight: 600;
}

.curso-txt small {
  font-size: calc(10.5 * var(--u));
  color: var(--texto-2);
}

.curso-aviso {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: calc(5 * var(--u)) calc(10 * var(--u));
  border-radius: 999px;
  background: #fff;
  color: var(--vermelho);
  font-size: calc(11 * var(--u));
  font-weight: 600;
  box-shadow: 0 8px 20px -12px rgba(255, 59, 48, 0.6), 0 0 0 1px rgba(255, 59, 48, 0.12);
  opacity: 0;
  transform: translateY(-6px) scale(0.9);
  transition: opacity 0.35s ease, transform 0.6s var(--mola-c);
}

.curso-aviso svg {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
}

.curso-ia.aviso .curso-aviso {
  opacity: 1;
  transform: none;
}

@keyframes treme {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-9px); }
  30% { transform: translateX(8px); }
  45% { transform: translateX(-6px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

@media (min-width: 900px) {
  .c-dor-grade {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }
}

/* =========================================================
   4. Como funciona: pilha de passes da Wallet
   ========================================================= */
.c-plano {
  position: relative;
  padding-bottom: var(--secao);
}

.plano-trilho {
  position: relative;
  height: 250vh;
}

.plano-fixo {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  overflow: clip;
}

.plano-grade {
  display: grid;
  gap: 32px;
  align-items: center;
}

.plano-texto .t-lead {
  margin-top: 20px;
  max-width: 500px;
}

.plano-cab {
  display: grid;
  gap: 2px;
  margin-top: 32px;
}

.plano-cab b {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plano-cab span {
  font-size: 15px;
  color: var(--texto-3);
}

.plano-pilha {
  --etapa-h: 148px;
  --etapa-g: 14px;
  position: relative;
  height: calc(4 * var(--etapa-h) + 3 * var(--etapa-g));
  margin: 0;
  padding: 0;
  list-style: none;
}

.etapa {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--etapa-h);
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  border-radius: 20px;
  background: linear-gradient(160deg, #fff -30%, var(--tom) 70%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 22px 44px -30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  transform-origin: 50% 100%;
  will-change: transform;
}

.etapa-cab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
}

.etapa-rot {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--tinta);
  opacity: 0.85;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 7px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
}

.estado svg {
  width: 15px;
  height: 15px;
}

.estado.feito { color: #1f8f43; }
.estado.andamento { color: #b86e00; }
.estado.andamento svg { animation: gira 1.6s linear infinite; }
.estado.depois { color: var(--texto-2); }

.etapa-titulo {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.etapa-detalhe {
  margin-top: 2px;
  font-size: 15px;
  color: color-mix(in srgb, var(--tinta) 60%, #3a3a3c);
}

.garantias {
  display: grid;
  gap: 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.garantia {
  padding: 28px;
  background: var(--fundo);
  box-shadow: none;
}

.garantia .t-sub {
  margin-top: 20px;
  font-size: 21px;
}

.garantia .t-corpo {
  margin-top: 8px;
}

.garantia.cartao-vivo:hover {
  background: #fff;
}

@media (min-width: 900px) {
  .plano-grade {
    grid-template-columns: 1fr 460px;
    gap: 96px;
  }

  .garantias {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* modo automático: sem sticky (celular, iframe inflado, movimento reduzido) */
.plano-auto .plano-trilho {
  height: auto;
}

.plano-auto .plano-fixo {
  position: relative;
  height: auto;
  padding-top: 0;
  overflow: visible;
}

@media (max-width: 899px) {

  .plano-grade {
    gap: 24px;
  }

  .plano-cab {
    display: none;
  }

  .plano-texto .t-lead {
    font-size: 17px;
    margin-top: 12px;
  }

  .plano-pilha {
    --etapa-h: 104px;
    --etapa-g: 10px;
  }

  .etapa {
    padding: 14px 16px;
    border-radius: 18px;
  }

  .etapa-titulo {
    font-size: 17px;
  }

  .etapa-detalhe {
    font-size: 14px;
    margin-top: 0;
  }

  .estado {
    font-size: 12px;
    padding: 3px 9px 3px 6px;
  }
}

/* =========================================================
   5. No dia a dia: carrossel com snap
   ========================================================= */
.c-dia-cab {
  max-width: 1120px;
}

.c-dia-cab .t-titulo,
.c-dia-cab .t-lead {
  max-width: 720px;
}

.c-dia-cab .t-lead {
  margin-top: 16px;
}

.carrossel {
  margin-top: 48px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad-carrossel);
  scrollbar-width: none;
  padding: 8px 0 28px;
}

.carrossel::-webkit-scrollbar {
  display: none;
}

.carrossel:focus-visible {
  outline-offset: -4px;
}

.carrossel-trilho {
  display: flex;
  gap: 20px;
  width: max-content;
  margin: 0;
  padding: 0 var(--pad-carrossel);
  list-style: none;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 344px;
  height: 500px;
  padding: 28px;
  border-radius: var(--raio);
  background: var(--fundo);
  scroll-snap-align: start;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

.tile .t-sub {
  margin-top: 16px;
  font-size: 24px;
}

.tile .t-corpo {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.42;
}

.mini {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 216px;
  font-size: 15px;
}

.mini [data-p],
.mini [data-so] {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  filter: blur(4px);
  transition:
    max-height 0.5s var(--curva),
    margin-top 0.5s var(--curva),
    opacity 0.4s var(--curva),
    transform 0.6s var(--mola-c),
    filter 0.4s var(--curva);
}

.mini.s1 [data-p='1'],
.mini.s2 [data-p='2'],
.mini.s3 [data-p='3'],
.mini.s4 [data-p='4'],
.mini.s2:not(.s3) [data-so='2'] {
  max-height: 140px;
  margin-top: 8px;
  opacity: 1;
  transform: none;
  filter: none;
}

.mini.saindo [data-p],
.mini.saindo [data-so] {
  opacity: 0 !important;
  transition: opacity 0.45s ease !important;
}

.mini-titulo {
  font-size: 13px;
  font-weight: 600;
  color: var(--texto-3);
  margin-bottom: 4px;
}

.bolha {
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 18px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  overflow: hidden;
}

.bolha.ela {
  align-self: flex-start;
  background: #fff;
  border-bottom-left-radius: 6px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.bolha.nos {
  align-self: flex-end;
  background: #d9fdd3;
  border-bottom-right-radius: 6px;
}

.bolha.digitando {
  align-self: flex-end;
  display: flex;
  gap: 4px;
  padding: 13px 14px;
  background: #d9fdd3;
}

.bolha.digitando i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  animation: pontinho 1s ease-in-out infinite;
}

.bolha.digitando i:nth-child(2) { animation-delay: 0.15s; }
.bolha.digitando i:nth-child(3) { animation-delay: 0.3s; }

@keyframes pontinho {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

.mini-toast {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--azul);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px -14px rgba(0, 0, 0, 0.35);
}

.mini-toast.verde {
  color: #1f8f43;
}

.mini-toast svg {
  width: 17px;
  height: 17px;
}

/* agenda */
.slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.slot {
  display: grid;
  align-content: center;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.4s var(--curva), color 0.4s var(--curva), box-shadow 0.4s var(--curva), transform 0.5s var(--mola-c);
}

.slot.ocupado {
  background: rgba(0, 0, 0, 0.04);
  color: var(--texto-3);
  text-decoration: line-through;
  font-weight: 500;
}

.slot-nome {
  max-height: 0;
  opacity: 0;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-height 0.4s var(--curva), opacity 0.4s var(--curva);
}

.mini-agenda.s1 .slot.alvo {
  box-shadow: 0 0 0 2px var(--azul);
  transform: scale(1.03);
}

.mini-agenda.s2 .slot.alvo {
  background: var(--azul);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(0, 122, 255, 0.8);
  transform: none;
}

.mini-agenda.s2 .slot-nome {
  max-height: 20px;
  opacity: 0.9;
}

/* confirmação */
.aviso {
  padding: 12px 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.4);
}

.aviso-cab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.aviso-cab img {
  border-radius: 5px;
}

.aviso-cab span {
  margin-left: auto;
  color: var(--texto-3);
  font-size: 12px;
}

.aviso p {
  margin-top: 6px;
  line-height: 1.32;
}

.aviso-acoes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.acao {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 12px;
  background: var(--cinza-campo);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s var(--mola-c);
}

.acao.sim {
  background: var(--azul-claro);
  color: var(--azul);
}

.mini-confirma.s2 .acao.sim {
  background: var(--azul);
  color: #fff;
  transform: scale(0.97);
}

/* cobrança */
.cobra-linha {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
}

.cobra-linha + .cobra-linha {
  margin-top: 8px;
}

.cobra-txt {
  display: grid;
  flex: 1;
  min-width: 0;
}

.cobra-txt b {
  font-size: 15px;
  font-weight: 600;
}

.cobra-txt small {
  font-size: 13px;
  color: var(--texto-3);
}

.pilula-estado {
  position: relative;
  display: grid;
  font-size: 13px;
  font-weight: 600;
}

.pilula-estado span {
  grid-area: 1 / 1;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  transition: opacity 0.4s var(--curva), transform 0.5s var(--mola-c);
}

.pe-enviado {
  background: #fff3e0;
  color: #b86e00;
}

.pe-pago {
  background: #e3f7e8;
  color: #1f8f43;
  opacity: 0;
  transform: scale(0.8);
}

.mini-cobra.s2 .pe-enviado {
  opacity: 0;
  transform: scale(0.8);
}

.mini-cobra.s2 .pe-pago {
  opacity: 1;
  transform: none;
}

.cobra-linha .ok {
  width: 22px;
  height: 22px;
  color: var(--verde);
}

/* resumo */
.mini-resumo {
  justify-content: flex-start;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  height: auto;
  min-height: 0;
  margin-top: auto;
}

.resumo-cab {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--linha);
}

.resumo-cab img {
  border-radius: 6px;
}

.resumo-cab span {
  margin-left: auto;
  font-size: 12px;
  color: var(--texto-3);
}

.resumo-linha {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.resumo-linha svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.resumo-linha .v { color: var(--verde); }
.resumo-linha .l { color: var(--laranja); }

.carrossel-controles {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.circulo {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #e8e8ed;
  color: var(--texto);
  overflow: hidden;
  transition: background-color 0.16s ease, opacity 0.2s ease, transform 0.16s var(--curva);
}

.circulo svg {
  width: 20px;
  height: 20px;
}

.circulo:hover {
  background: #dcdce1;
}

.circulo:active {
  transform: scale(0.94);
}

.circulo:disabled {
  opacity: 0.38;
  cursor: default;
}

@media (max-width: 600px) {
  .tile {
    width: 300px;
    height: 476px;
    padding: 24px;
  }

  .tile .t-sub {
    font-size: 22px;
  }
}

/* =========================================================
   6. Regra: números que rolam
   ========================================================= */
.c-regra {
  text-align: center;
}

.c-regra .t-titulo {
  max-width: 820px;
  margin: 0 auto;
}

.c-regra .t-lead {
  max-width: 620px;
  margin: 20px auto 0;
}

.numeros {
  display: grid;
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.numero {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 44px 24px 40px;
  border-radius: var(--raio);
  background: var(--fundo);
}

.numero-valor {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.14em;
  font-family: var(--display);
  font-size: clamp(60px, 6.6vw, 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.numero-valor small {
  line-height: 1;
  margin-bottom: 0.3em;
  margin-left: 0.12em;
  font-size: 0.32em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--texto-2);
}

.numero-liga {
  line-height: 1;
  margin-bottom: 0.21em !important;
  font-size: 0.46em;
  font-weight: 600;
  color: var(--texto-2);
  letter-spacing: -0.02em;
  margin: 0 0.08em;
}

.numero-rot {
  font-size: 17px;
  color: var(--texto-2);
  max-width: 240px;
}

.odo {
  display: inline-flex;
  height: 1em;
  overflow: hidden;
}

.odo-dig {
  display: inline-block;
  height: 1em;
  overflow: hidden;
}

.odo-col {
  display: flex;
  flex-direction: column;
  transition: transform 1.8s var(--curva);
  transition-delay: var(--atraso-odo, 0s);
}

.odo-col span {
  display: block;
  height: 1em;
  line-height: 1;
}

@media (min-width: 900px) {
  .numeros {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* =========================================================
   7. Para quem
   ========================================================= */
.c-quem-cab .t-titulo,
.c-quem-cab .t-lead {
  max-width: 760px;
}

.c-quem-cab .t-lead {
  margin-top: 16px;
}

.nichos {
  display: grid;
  gap: 20px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.nicho {
  border-radius: var(--raio);
  overflow: hidden;
  background: linear-gradient(180deg, var(--p1), color-mix(in srgb, var(--p2) 70%, #fff));
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.nicho:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

.nicho-foto {
  aspect-ratio: 4 / 4.3;
  border-radius: 0;
  overflow: hidden;
}

.nicho-foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--curva), opacity 0.5s ease;
}

.nicho-foto.skeleton img {
  opacity: 0;
}

.nicho:hover .nicho-foto img {
  transform: scale(1.03);
}

.nicho-texto {
  padding: 24px 28px 28px;
}

.nicho-texto .t-sub {
  font-size: 24px;
}

.nicho-texto .t-corpo {
  margin-top: 6px;
}

.nicho-texto .link {
  margin-top: 16px;
}

.quem-app {
  margin-top: 32px;
  text-align: center;
}

@media (min-width: 900px) {
  .nichos {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================================================
   Passe da Wallet (folha, convite e fim)
   ========================================================= */
.sombra-passe {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06)) drop-shadow(0 24px 34px rgba(0, 0, 0, 0.16));
}

.passe {
  --entalhe: 82px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: var(--passe-w, 340px);
  height: var(--passe-h, 468px);
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(165deg, var(--p1) 10%, var(--p2) 120%);
  color: var(--texto);
  overflow: hidden;
  -webkit-mask:
    radial-gradient(circle 10px at 0 var(--entalhe), #0000 96%, #000 100%),
    radial-gradient(circle 10px at 100% var(--entalhe), #0000 96%, #000 100%);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle 10px at 0 var(--entalhe), #0000 96%, #000 100%),
    radial-gradient(circle 10px at 100% var(--entalhe), #0000 96%, #000 100%);
  mask-composite: intersect;
  transition: --p1 0.8s var(--curva), --p2 0.8s var(--curva), height 0.7s var(--curva);
}

.passe::before {
  /* brilho de papel plastificado */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, transparent 38%);
  pointer-events: none;
}

.passe-cab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  margin: 0 -20px;
  padding: 0 20px 18px;
  border-bottom: 1.5px dashed rgba(0, 0, 0, 0.13);
  flex: none;
}

.passe-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.passe-marca {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.passe-cab .passe-campo.dir {
  margin-left: auto;
}

.passe-corpo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 18px;
}

.passe-linha {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.passe-linha > .passe-campo:first-child {
  flex: 1 1 auto;
}

.passe-campo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.passe-campo.dir {
  align-items: flex-end;
  text-align: right;
  flex: none;
}

.passe-rot {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--tinta);
  opacity: 0.86;
  transition: color 0.8s var(--curva);
}

.passe-val {
  display: block;
  min-height: 1.2em;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.passe-val.grande {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.passe-val.pequeno {
  font-size: 15px;
}

.passe-val.vazio {
  color: rgba(0, 0, 0, 0.26);
}

.letra {
  animation: letra 0.5s var(--curva) both;
  animation-delay: calc(var(--i, 0) * 16ms);
}

@keyframes letra {
  from {
    opacity: 0;
    color: transparent;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
  }
}

.passe-qr {
  position: relative;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qr {
  display: block;
  width: 124px;
  height: 124px;
  padding: 9px;
  border-radius: 12px;
  background: #fff;
  color: #1d1d1f;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.qr svg {
  width: 100%;
  height: 100%;
}

.qr.vazio svg {
  opacity: 0.18;
}

.qr.pulsa svg {
  animation: qr-pulsa 0.35s var(--curva);
}

@keyframes qr-pulsa {
  from { opacity: 0.55; transform: scale(0.97); }
}

.qr-mini {
  display: none;
  width: 36px;
  height: 36px;
  padding: 3px;
  border-radius: 7px;
  flex: none;
}

.qr-grande {
  width: 196px;
  height: 196px;
  padding: 12px;
  border-radius: 16px;
}

.passe-codigo {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(0, 0, 0, 0.45);
}

/* verso */
.passe-verso {
  align-items: center;
}

.verso-cab {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  height: 64px;
  margin: 0 -20px;
  padding: 0 20px 18px;
  border-bottom: 1.5px dashed rgba(0, 0, 0, 0.13);
  flex: none;
}

.verso-cab > span:last-child {
  display: grid;
  min-width: 0;
}

.verso-cab b {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.verso-cab small {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verso-ok {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--verde);
  color: #fff;
  flex: none;
}

.verso-ok svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.4;
}

.verso-qr {
  margin: auto 0;
}

.verso-pe {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}

/* =========================================================
   8. Diagnóstico na página
   ========================================================= */
.diag-bloco {
  position: relative;
  display: grid;
  gap: 48px;
  align-items: center;
  padding: 64px 28px;
  border-radius: 40px;
  background: var(--fundo);
  overflow: hidden;
  isolation: isolate;
}

.aura-diag i {
  --tam: 460px;
  --o: 0.3;
}

.aura-diag i:nth-child(1) { right: 6%; top: -30%; }
.aura-diag i:nth-child(2) { right: 26%; top: 10%; }
.aura-diag i:nth-child(3) { right: -8%; top: 30%; }
.aura-diag i:nth-child(4) { right: 16%; top: 46%; }

.diag-texto {
  position: relative;
  z-index: 1;
}

.diag-texto .t-lead {
  margin-top: 16px;
  max-width: 460px;
}

.diag-texto .par-botoes {
  margin-top: 32px;
}

.diag-nota {
  margin-top: 14px;
}

.diag-passe {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.flutua-passe {
  animation: flutua-passe 9s ease-in-out infinite;
}

@keyframes flutua-passe {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(0, -14px, 0) rotate(-2.5deg); }
}

.diag-passe .passe {
  --passe-w: 300px;
  --passe-h: 420px;
}

.diag-passe .qr {
  width: 104px;
  height: 104px;
}

@media (min-width: 900px) {
  .diag-bloco {
    grid-template-columns: 1.15fr 1fr;
    padding: 80px 72px;
  }
}

/* =========================================================
   9. Perguntas, Instagram e rodapé
   ========================================================= */
.faq-grade {
  display: grid;
  gap: 32px;
}

.faq-grade .faq {
  box-shadow: none;
  background: var(--fundo);
}

.faq summary {
  min-height: 60px;
}

@media (min-width: 900px) {
  .faq-grade {
    grid-template-columns: 1fr 1.6fr;
    gap: 64px;
    align-items: start;
  }
}

.insta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  align-items: center;
  margin-top: 48px;
  padding: 28px;
  background: var(--fundo);
  box-shadow: none;
}

.insta-ic {
  --cor: #e1306c;
  background: linear-gradient(45deg, #f58529, #dd2a7b 60%, #c13584);
}

.insta-texto {
  display: grid;
  gap: 4px;
}

.insta-texto .t-sub {
  font-size: 21px;
}

.insta {
  align-items: start;
}

.insta-arroba {
  grid-column: 2;
}

@media (min-width: 700px) {
  .insta {
    grid-template-columns: auto 1fr auto;
  }

  .insta {
    align-items: center;
  }

  .insta-arroba {
    grid-column: auto;
  }
}

.rodape {
  padding-bottom: 96px;
}

.rodape p + p {
  margin-top: 6px;
}

.rodape-fim {
  margin-top: 40px;
}

/* =========================================================
   A folha do formulário
   ========================================================= */
.folha-fundo {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(245, 245, 247, 0.38);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  opacity: 0;
  transition: opacity 0.45s var(--curva);
}

.folha-fundo.ativo {
  opacity: 1;
}

.folha {
  position: fixed;
  inset: 0;
  z-index: 90;
  width: min(1000px, calc(100vw - 48px));
  height: min(660px, calc(100dvh - 48px));
  margin: auto;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  overflow: clip; /* nada lá dentro pode rolar a folha, nem o foco */
  will-change: transform, clip-path;
}

.folha.inflada {
  position: absolute;
  inset: auto 0 auto 0;
  height: 660px;
}

.folha[hidden],
.folha-fundo[hidden] {
  display: none;
}

.folha-tinta {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.folha-grade {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: 100%;
}

.folha-passe {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 32px;
  background:
    radial-gradient(60% 46% at 50% 58%, color-mix(in srgb, var(--p2) 80%, transparent), transparent 75%),
    var(--fundo);
  transition: --p1 0.8s var(--curva), --p2 0.8s var(--curva), background-color 0.5s ease;
}

.folha-passe-cab {
  text-align: center;
}

.folha-passe-cab h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.folha-passe-cab p {
  margin-top: 2px;
  font-size: 15px;
  color: var(--texto-2);
}

.passe-cena {
  position: relative;
  perspective: 1400px;
  transition: transform 0.85s var(--curva);
}

.passe-giro {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 1s var(--mola-c);
}

.passe-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.passe-face.verso {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

.passe-giro.virado {
  transform: rotateY(180deg);
}

.folha-perguntas {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 40px 32px;
  transition: opacity 0.4s var(--curva), transform 0.5s var(--curva), filter 0.4s var(--curva);
}

.folha-barra {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
}

.circulo.pequeno {
  width: 36px;
  height: 36px;
}

.circulo.pequeno svg {
  width: 14px;
  height: 14px;
}

#folha-voltar {
  transition: opacity 0.25s ease, transform 0.3s var(--curva), background-color 0.16s ease;
}

#folha-voltar.escondido {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.progresso {
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: var(--cinza-claro);
  overflow: hidden;
}

.progresso-cheio {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--azul);
  transform-origin: 0 50%;
  transform: scaleX(0.25);
  transition: transform 0.7s var(--mola-c);
}

.folha-contagem {
  min-width: 36px;
  font-size: 13px;
  font-weight: 500;
  color: var(--texto-3);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.passos-janela {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0 -40px;
  overflow: hidden;
  overflow: clip;
}

.passos {
  display: flex;
  height: 100%;
  transform: translateX(calc(var(--passo-i, 0) * -100%));
  transition: transform 0.7s var(--mola-c);
}

.passo {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 36px 40px 12px;
  border: 0;
  overflow-y: auto;
  opacity: 0;
  filter: blur(4px);
  transition: opacity 0.45s var(--curva), filter 0.45s var(--curva);
}

.passo.atual {
  opacity: 1;
  filter: none;
}

.passo:focus {
  outline: none;
}

.passo-titulo {
  float: left;
  width: 100%;
  padding: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.passo-apoio {
  clear: both;
  padding-top: 10px;
  font-size: 17px;
  color: var(--texto-2);
}

.tipos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.tipo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  min-height: 124px;
  padding: 18px;
  border-radius: 20px;
  background: var(--fundo);
  border: 2px solid transparent;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.tipo input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tipo .app-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.tipo:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
  background: #fff;
}

.tipo:active {
  transform: scale(0.98);
}

.tipo::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.16);
  background: center / 14px no-repeat;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.45s var(--mola-c);
}

.tipo:has(input:checked) {
  border-color: var(--azul);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.12);
}

.tipo:has(input:checked)::after {
  background-color: var(--azul);
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.4 6.6 11.5 12.5 4.8'/%3E%3C/svg%3E");
  transform: scale(1.06);
}

.tipo:has(input:focus-visible) {
  outline: 3px solid rgba(0, 122, 255, 0.45);
  outline-offset: 2px;
}

.sugestoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.sugestao {
  position: relative;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--fundo);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.sugestao:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}

.sugestao[aria-pressed='true'] {
  background: var(--azul);
  color: #fff;
}

.campo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}

.campo label {
  font-size: 15px;
  font-weight: 600;
}

.campo input,
.campo textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: var(--cinza-campo);
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.campo textarea {
  min-height: 96px;
  resize: none;
  line-height: 1.4;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: rgba(60, 60, 67, 0.38);
}

.campo input:hover,
.campo textarea:hover {
  background: #ebebf0;
}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--azul);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.14);
}

.campo [aria-invalid='true'] {
  background: #fff6f5;
  border-color: var(--vermelho);
}

.campo [aria-invalid='true']:focus {
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.14);
  border-color: var(--vermelho);
}

.erro {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #d70015;
}

.campo .erro {
  margin-top: 0;
}

.erro svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.erro:empty {
  visibility: hidden;
}

.erro:not(:empty) {
  animation: erro-entra 0.35s var(--curva);
}

@keyframes erro-entra {
  from { opacity: 0; transform: translateY(-4px); }
}

.treme {
  animation: treme 0.45s var(--curva);
}

.folha-acao {
  padding-top: 16px;
}

.folha-acao .btn {
  min-height: 54px;
}

/* fim: carteira, check, notificação */
.fim-palco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.notif-fim {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 6;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: min(420px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translate(-50%, -150%) scale(0.96);
}

.notif-fim.ver {
  opacity: 1;
  transform: translate(-50%, 0);
  transition: transform 0.9s var(--mola-c), opacity 0.3s ease;
}

.notif-fim img {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex: none;
}

.notif-fim > div {
  min-width: 0;
  flex: 1;
}

.notif-cab {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
}

.notif-cab span {
  margin-left: auto;
  font-size: 13px;
  color: var(--texto-3);
}

.notif-fim p {
  margin-top: 1px;
  font-size: 15px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.concluido {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--concluido-y, 28%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--curva), transform 0.6s var(--curva);
}

.concluido.ver {
  opacity: 1;
  transform: none;
}

.concluido svg {
  width: 88px;
  height: 88px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--verde);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.concluido circle {
  stroke-width: 4;
  stroke-dasharray: 252;
  stroke-dashoffset: 252;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

.concluido path {
  stroke-width: 5.5;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
}

.concluido.ver circle {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s var(--curva);
}

.concluido.ver path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.45s var(--curva) 0.55s;
}

.concluido b {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.concluido span {
  font-size: 15px;
  color: var(--texto-2);
}

.fim-acoes {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(var(--concluido-y, 28%) + 178px);
  z-index: 5;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  transition: opacity 0.45s var(--curva), transform 0.6s var(--curva), visibility 0s 0.45s;
}

.fim-acoes.ver {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.45s var(--curva), transform 0.6s var(--curva), visibility 0s;
}

.carteira {
  position: absolute;
  left: 50%;
  top: var(--carteira-y, 70%);
  z-index: 1;
  width: var(--carteira-w, 340px);
  height: 400px;
  translate: -50% 0;
}

.carteira i {
  position: absolute;
  left: 0;
  right: 0;
  height: 400px;
  border-radius: 18px;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.7) inset, 0 -8px 20px -14px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(80px) scale(var(--s));
  transition: opacity 0.4s ease, transform 0.8s var(--mola-c);
}

.carteira i:nth-child(1) { top: 0; --s: 0.92; background: linear-gradient(180deg, #d3e5ff, #bcd6ff); }
.carteira i:nth-child(2) { top: 22px; --s: 0.95; background: linear-gradient(180deg, #eddcbf, #e2cba5); }
.carteira i:nth-child(3) { top: 44px; --s: 0.98; background: linear-gradient(180deg, #c9eedb, #b3e4cb); }

.carteira.ver i {
  opacity: 1;
  transform: translateY(0) scale(var(--s));
}

.carteira.ver i:nth-child(2) { transition-delay: 0.07s; }
.carteira.ver i:nth-child(3) { transition-delay: 0.14s; }

.folha.fim .folha-perguntas {
  opacity: 0;
  transform: translateX(24px);
  filter: blur(6px);
  pointer-events: none;
}

.folha.fim .folha-passe {
  background: transparent;
}

.folha.fim .folha-passe-cab {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* celular: tela cheia, sobe de baixo, passe compacto no topo */
@media (max-width: 899px) {
  .folha {
    width: 100%;
    height: 100%;
    height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .folha.inflada {
    width: calc(100% - 16px);
    height: 800px;
    border-radius: 28px;
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
  }

  .folha-grade {
    display: flex;
    flex-direction: column;
  }

  .folha-perguntas {
    display: contents;
  }

  .folha-barra {
    order: 0;
    padding: 10px 16px 6px;
    padding-top: calc(10px + env(safe-area-inset-top));
    transition: opacity 0.4s var(--curva);
  }

  .circulo.pequeno {
    width: 44px;
    height: 44px;
  }

  .folha-passe {
    order: 1;
    padding: 6px 16px 0;
    background: transparent;
    gap: 0;
  }

  .folha-passe-cab {
    display: none;
  }

  .passe-cena,
  .passe-giro {
    width: 100%;
  }

  #passe-cena .passe {
    --passe-w: 100%;
    --passe-h: 440px;
  }

  #passe-cena .passe.compacto {
    height: 214px;
  }

  .passe.compacto .qr-mini {
    display: block;
  }

  .passe.compacto .passe-cab .passe-campo.dir {
    margin-left: auto;
  }

  .passe.compacto .passe-val.grande {
    font-size: 26px;
  }

  .passos-janela {
    order: 2;
    margin: 0;
  }

  .passo {
    padding: 24px 16px 12px;
  }

  .passo-titulo {
    font-size: 26px;
  }

  .passo-apoio {
    font-size: 16px;
    padding-top: 6px;
  }

  .tipos {
    margin-top: 20px;
    gap: 10px;
  }

  .tipo {
    min-height: 100px;
    padding: 14px;
    gap: 12px;
    font-size: 16px;
  }

  .tipo .app-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .sugestoes {
    margin-top: 16px;
  }

  .sugestao {
    font-size: 14px;
    padding: 9px 14px;
  }

  .campo {
    margin-top: 18px;
  }

  .campo textarea {
    min-height: 84px;
  }

  .folha-acao {
    order: 3;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -1px 0 var(--linha);
    transition: opacity 0.4s var(--curva);
  }

  .folha.fim .folha-barra,
  .folha.fim .passos-janela,
  .folha.fim .folha-acao {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--curva);
  }

  .fim-acoes .btn {
    flex: 1 1 100%;
  }
}

/* =========================================================
   Movimento reduzido: nada contínuo, estados finais visíveis
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .aura i,
  .flutua,
  .flutua-passe,
  .ilha-onda i {
    animation: none !important;
  }

  .mini [data-p] {
    max-height: 140px;
    margin-top: 8px;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* =========================================================
   VERSÃO FINAL (08/10/2026): o que entrou das variações A e B
   e os ajustes de posição dos ícones
   ========================================================= */

/* ---------- véu atrás da Dynamic Island: o texto não passa "por baixo" da pílula ---------- */
.ilha-zona::before {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 68px;
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.6) 60%, rgba(255, 255, 255, 0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

.rolou .ilha-zona::before {
  opacity: 1;
}

/* ---------- Live Activity na ilha (da variação A) ---------- */
.ilha-la {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  gap: 10px;
}

.ilha-la-tempo {
  font-variant-numeric: tabular-nums;
  color: var(--laranja);
}

.ilha.la .ilha-marca {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(4px);
}

.ilha.la:not(.vivo) .ilha-la {
  opacity: 1;
  transform: none;
  filter: none;
}

.ilha.la .anel-progresso {
  stroke: var(--laranja);
  transition: stroke-dashoffset 1s linear;
}

/* ---------- widgets que flutuam em volta do iPhone (da variação A) ---------- */
.widget {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 48px -26px rgba(0, 0, 0, 0.3);
  text-align: left;
  white-space: nowrap;
  animation: flutua 7s ease-in-out infinite;
}

.widget .app-ic {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.widget-txt {
  display: grid;
  line-height: 1.25;
}

.widget-txt b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.widget-txt small {
  font-size: 12px;
  color: var(--texto-2);
}

/* celular: dois widgets pequenos encostados nas bordas do aparelho */
.widget.w1 {
  left: max(var(--gutter), calc(50% - 196px));
  top: 63%;
  animation-delay: -1s;
}

.widget.w2 {
  right: max(var(--gutter), calc(50% - 196px));
  top: 77%;
  animation-duration: 8s;
  animation-delay: -3s;
}

.widget.w3,
.widget.w4 {
  display: none;
}

@media (max-width: 420px) {
  .widget {
    gap: 8px;
    padding: 8px 12px 8px 8px;
    border-radius: 15px;
  }

  .widget .app-ic {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .widget-txt b {
    font-size: 13px;
  }

  .widget-txt small {
    font-size: 11px;
  }

  .widget.w1 {
    left: 6px;
  }

  .widget.w2 {
    right: 6px;
  }
}

@media (min-width: 760px) {
  .widget {
    padding: 12px 18px 12px 12px;
    border-radius: 20px;
    gap: 12px;
  }

  .widget .app-ic {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .widget-txt b {
    font-size: 15px;
  }

  .widget-txt small {
    font-size: 13px;
  }

  .widget.w1 {
    left: max(16px, calc(50% - 430px));
    top: 14%;
  }

  .widget.w2 {
    right: max(16px, calc(50% - 440px));
    top: 34%;
  }

  .widget.w3,
  .widget.w4 {
    display: flex;
  }

  .widget.w3 {
    left: max(16px, calc(50% - 400px));
    top: 56%;
    animation-duration: 9s;
    animation-delay: -4s;
  }

  .widget.w4 {
    right: max(16px, calc(50% - 400px));
    top: 72%;
    animation-duration: 8.5s;
    animation-delay: -2s;
  }
}

/* ---------- mapa vivo da empresa (da variação B) ---------- */
.c-mapa {
  background: var(--fundo);
}

.c-mapa-grade {
  display: grid;
  gap: 40px;
  align-items: center;
}

.c-mapa-texto .t-lead {
  margin-top: 20px;
  max-width: 520px;
}

.mapa-legenda {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.mapa-legenda li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--texto-2);
}

.pilula-cinza {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #e5e5ea;
  color: var(--texto-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.mapa-legenda .pilula-ia {
  min-width: 86px;
  justify-content: center;
}

.mapa-cartao {
  padding: 20px;
  width: 100%;
  max-width: 520px;
  justify-self: center;
}

.mapa-cab {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.mapa-cab b {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.mapa-estado {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--texto-3);
}

.mapa-estado i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--laranja);
  animation: pisca-ponto 1.2s ease-in-out infinite;
}

.mapa-estado.pronto i {
  background: var(--verde);
  animation: none;
}

@keyframes pisca-ponto {
  50% {
    opacity: 0.3;
  }
}

.mapa-area {
  position: relative;
  aspect-ratio: 1 / 0.92;
  max-width: 100%;
  border-radius: 18px;
  background-color: #fafafc;
  background-image: radial-gradient(#d9d9de 1px, transparent 1px);
  background-size: 18px 18px;
  box-shadow: inset 0 0 0 1px var(--linha);
}

.mapa-linhas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mapa-linhas path {
  fill: none;
  stroke: #c7c7cc;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--curva);
}

.mapa-cartao.ativo .mapa-linhas path {
  stroke-dashoffset: 0;
}

.mapa-linhas path:nth-child(2) { transition-delay: 0.15s; }
.mapa-linhas path:nth-child(3) { transition-delay: 0.3s; }
.mapa-linhas path:nth-child(4) { transition-delay: 0.45s; }
.mapa-linhas path:nth-child(5) { transition-delay: 0.6s; }

.mapa-area .no {
  position: absolute;
  width: 44%;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--linha), 0 6px 14px -10px rgba(0, 0, 0, 0.25);
  font-size: clamp(12px, 3.4vw, 15px);
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s var(--curva), transform 0.55s var(--mola), box-shadow 0.5s ease;
}

.mapa-area .no .app-ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.no-nome {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mapa-area .n1 { left: 25%; top: 16.7%; }
.mapa-area .n2 { left: 75%; top: 16.7%; transition-delay: 0.08s; }
.mapa-area .n3 { left: 25%; top: 50%; transition-delay: 0.16s; }
.mapa-area .n4 { left: 75%; top: 50%; transition-delay: 0.24s; }
.mapa-area .n5 { left: 25%; top: 83.3%; transition-delay: 0.32s; }
.mapa-area .n6 { left: 75%; top: 83.3%; transition-delay: 0.4s; }

.mapa-cartao.ativo .no {
  opacity: 1;
  transform: none;
}

.mapa-area .no .pilula-ia {
  position: absolute;
  top: -11px;
  right: -6px;
  font-size: 10.5px;
  opacity: 0;
  transform: scale(0.6) translateY(4px);
  transition: opacity 0.35s var(--curva), transform 0.5s var(--mola);
}

.mapa-cartao.impacto .no.alto {
  box-shadow: 0 0 0 1.5px #a35bf7, 0 0 0 5px rgba(163, 91, 247, 0.12), 0 10px 22px -10px rgba(163, 91, 247, 0.55);
  animation: respira 3.2s ease-in-out infinite;
}

.mapa-cartao.impacto .no.n4 { animation-delay: -1s; }
.mapa-cartao.impacto .no.n6 { animation-delay: -2s; }

.mapa-cartao.impacto .no.alto .pilula-ia {
  opacity: 1;
  transform: none;
}

.mapa-cartao.impacto .no.n4 .pilula-ia { transition-delay: 0.15s; }
.mapa-cartao.impacto .no.n6 .pilula-ia { transition-delay: 0.3s; }

.mapa-cartao.impacto .no:not(.alto) {
  opacity: 0.5;
  transition-delay: 0.4s;
}

@keyframes respira {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (min-width: 900px) {
  .c-mapa-grade {
    grid-template-columns: 1fr 1fr;
    gap: 72px;
  }

  .mapa-cartao {
    padding: 24px;
  }
}

/* ---------- formulário: assistente que responde (da variação A) ---------- */
.assistente {
  clear: both;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
}

.assistente img {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  margin-top: 2px;
}

.assistente p {
  padding: 9px 13px;
  border-radius: 18px;
  border-top-left-radius: 6px;
  background: #e9e9eb;
  font-size: 15px;
  line-height: 1.38;
  color: var(--texto);
  letter-spacing: -0.01em;
}

.assistente.nova p {
  animation: bal-entra 0.5s var(--mola) both;
  transform-origin: 0 0;
}

@keyframes bal-entra {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(6px);
  }
}

.sugestoes .sugestao {
  animation: bal-entra 0.4s var(--mola) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

/* ---------- passo das horas (da variação B) ---------- */
.horas {
  clear: both;
  margin-top: 28px;
  padding: 22px 20px 16px;
  border-radius: 22px;
  background: var(--fundo);
}

.horas-valor {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
}

.horas-valor b {
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.horas-valor span {
  font-size: 17px;
  font-weight: 600;
  color: var(--texto-2);
}

.horas input[type='range'] {
  --p: 21%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 14px 0 4px;
  background: transparent;
  cursor: pointer;
}

.horas input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--azul) var(--p), #dcdce1 var(--p));
}

.horas input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: #dcdce1;
}

.horas input[type='range']::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--azul);
}

.horas input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--mola);
}

.horas input[type='range']::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.3);
}

.horas input[type='range']:active::-webkit-slider-thumb {
  transform: scale(1.12);
}

.horas input[type='range']:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.45);
  outline-offset: 4px;
  border-radius: 999px;
}

.horas-escala {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--texto-3);
}

.horas-conta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #fff4e5;
  font-size: 15px;
  line-height: 1.4;
  color: #6b4100;
}

.horas-conta .app-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.horas-conta b {
  font-variant-numeric: tabular-nums;
}

/* ---------- ajustes de posição ---------- */
/* "Curso de IA": o vidro atrás do cartão cobre os eventos, para nada aparecer pela metade */
.curso-ia::before {
  content: '';
  position: absolute;
  inset: calc(-10 * var(--u)) calc(-8 * var(--u));
  border-radius: calc(16 * var(--u));
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: -1;
}

/* link com seta: a seta anda junto com a última palavra quando o texto quebra */
.quem-app .link,
.insta-arroba {
  display: inline;
}

.quem-app .link svg,
.insta-arroba svg {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 2px;
}

.quem-app {
  padding: 0 var(--gutter);
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .widget,
  .mapa-cartao.impacto .no.alto {
    animation: none !important;
  }
}
