/* Página /dicas: redireciona para o grupo de dicas da Aira no WhatsApp. */

.dicas {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 96px 20px 48px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(140% 55% at 50% 108%, #cffca9 0%, rgba(207, 252, 169, 0.55) 40%, rgba(207, 252, 169, 0) 72%);
}

.dicas__logo {
  position: absolute;
  top: 28px;
  left: 50%;
  translate: -50% 0;
  border-radius: 6px;
}

.dicas__logo img {
  width: 91px;
  height: 23.36px;
}

.dicas__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 460px;
  padding: 44px 32px 32px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(20, 75, 32, 0.08);
  text-align: center;
}

/* Mascote no mesmo selo do título da página inicial */
.dicas__mascot {
  display: inline-flex;
  padding: 6px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1.15px rgba(123, 163, 93, 0.25);
}

.dicas__mascot-pill {
  position: relative;
  width: 96px;
  height: 58px;
  border-radius: 999px;
  background: var(--color-yellow);
}

.dicas__mascot-crop {
  position: absolute;
  left: 0;
  right: 0;
  top: -38px;
  height: 96px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}

.dicas__mascot-crop img {
  position: absolute;
  left: 2px;
  top: 12px;
  width: 96px;
  max-width: none;
  height: auto;
}

.dicas__eyebrow {
  margin-top: 28px;
  padding: 6px 18px;
  font-size: 13px;
}

.dicas__title {
  margin-top: 16px;
  color: var(--color-forest);
  font-size: clamp(26px, 6.6vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.dicas__lead {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.45;
  text-wrap: balance;
}

/* Contagem regressiva em anel */
.dicas__timer {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-top: 28px;
}

.dicas__ring {
  position: absolute;
  inset: 0;
  rotate: -90deg;
}

.dicas__ring-track,
.dicas__ring-bar {
  fill: none;
  stroke-width: 4;
}

.dicas__ring-track {
  stroke: rgba(20, 75, 32, 0.08);
}

.dicas__ring-bar {
  stroke: var(--color-leaf);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.dicas.is-counting .dicas__ring-bar {
  animation: countdown var(--seconds, 5s) linear forwards;
}

.dicas.is-paused .dicas__ring-bar {
  animation-play-state: paused;
  stroke: rgba(20, 75, 32, 0.25);
}

@keyframes countdown {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 100; }
}

.dicas__count {
  color: var(--color-forest);
  font-size: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.dicas__status {
  min-height: 20px;
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 20px;
}

.dicas__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 24px;
}

.dicas__go {
  gap: 10px;
  width: 100%;
  min-height: 52px;
}

.dicas__wa {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.dicas__pause {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-muted);
  font-size: 15px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dicas__pause:hover {
  background: rgba(20, 75, 32, 0.06);
  color: var(--color-forest);
}

.dicas__pause:focus-visible,
.dicas__logo:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--color-green);
}

.dicas__go:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px var(--color-leaf);
}

.dicas__go:hover {
  translate: 0 -1px;
}

.dicas__go:active {
  scale: 0.98;
}

/* Entrada curta */
@media (prefers-reduced-motion: no-preference) {
  .dicas__card {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .dicas__mascot {
    animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
  }
}

@keyframes rise {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 480px) {
  .dicas {
    padding-top: 84px;
  }

  .dicas__card {
    padding: 40px 20px 24px;
    border-radius: 28px;
  }
}
