/* ==========================================================================
   Contaí — página do produto (complementa style.css)
   Mesma identidade da Mutaito IT; cores de status seguem o design system do app
   (receita/pago, despesa, pendente), sempre com ícone e texto, nunca só cor.
   Compatível com a CSP: sem estilo inline, sem recursos externos.
   ========================================================================== */

:root {
  --c-in: #34d399;
  --c-out: #f87171;
  --c-warn: #fbbf24;
}

/* ---------- Celular ilustrativo (hero) ---------- */

.phone-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  padding: 24px 0 44px;
}

.phone-wrap .halo {
  position: absolute;
  inset: 4% 4% 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.5), rgba(0, 102, 255, 0) 68%);
  filter: blur(30px);
}

.phone {
  position: relative;
  width: min(100%, 318px);
  margin-inline: auto;
  padding: 11px;
  border-radius: 40px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #1b2846, #0b1020 60%);
  box-shadow: 0 44px 80px -30px rgba(0, 102, 255, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.phone-notch {
  position: absolute;
  top: 17px;
  left: 50%;
  z-index: 2;
  width: 64px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 7px;
  background: rgba(167, 176, 192, 0.22);
}

.phone-screen {
  min-height: 548px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px 16px 14px;
  border-radius: 30px;
  background: var(--bg);
  overflow: hidden;
}

.ph-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ph-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.ph-brand svg {
  width: 26px;
  height: 12px;
}

.ph-month {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}

/* Duas faixas inclinadas comparam recebido e pago (assinatura visual do app) */
.ph-bands {
  display: grid;
  gap: 8px;
  padding: 16px 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(17, 26, 46, 0.85);
}

.ph-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ph-band-row + .ph-band {
  margin-bottom: 8px;
}

.ph-band-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--slate);
}

.ph-band-label .icon {
  width: 15px;
  height: 15px;
}

.ph-band-val {
  font-size: 0.98rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ph-band-val.up {
  color: var(--c-in);
}

.ph-band-val.down {
  color: var(--c-out);
}

.ph-band {
  display: block;
  height: 14px;
  margin-left: 6px;
  transform: skewX(-21deg);
  border-radius: 3px;
}

.ph-band.b-in {
  width: 92%;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.95), rgba(52, 211, 153, 0.35));
}

.ph-band.b-out {
  width: 60%;
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.95), rgba(248, 113, 113, 0.35));
}

.ph-list {
  display: grid;
  gap: 8px;
}

.ph-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(17, 26, 46, 0.6);
}

.ph-item {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}

.ph-item small {
  display: block;
  margin-top: 1px;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--slate);
}

.ph-amt {
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  text-align: right;
}

.ph-amt.in {
  color: var(--c-in);
}

.ph-chip {
  grid-column: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ph-chip .icon {
  width: 12px;
  height: 12px;
}

.ph-chip.paid {
  color: var(--c-in);
}

.ph-chip.pend {
  color: var(--c-warn);
}

.ph-nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  justify-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.ph-nav span {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: rgba(167, 176, 192, 0.3);
}

.ph-nav .ph-add {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -30px;
  border-radius: 50%;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background: linear-gradient(145deg, var(--cyan), var(--accent));
  box-shadow: 0 0 0 5px var(--bg), 0 14px 26px -10px rgba(0, 102, 255, 0.9);
}

.phone-wrap .float.pf-a {
  left: -16%;
  bottom: 9%;
  right: auto;
  top: auto;
}

.phone-note {
  margin-top: 26px;
  text-align: center;
  font-size: 0.76rem;
  color: var(--slate);
}

/* ---------- Recursos ---------- */

.c-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.c-features .card {
  grid-column: auto;
}

/* ---------- Privacidade ---------- */

.c-privacy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
}

.c-privacy .badge-live {
  margin-bottom: 20px;
}

/* ---------- Perguntas frequentes ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--bg-3), rgba(17, 26, 46, 0.6));
  transition: border-color 0.25s ease;
}

.faq details[open] {
  border-color: rgba(0, 230, 214, 0.45);
}

.faq summary {
  position: relative;
  display: block;
  padding: 18px 56px 18px 22px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 24px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--slate);
  font-size: 0.98rem;
}

.faq details p a {
  color: var(--text);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .phone-wrap {
    max-width: 380px;
    margin-top: 12px;
  }

  .c-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .c-features {
    grid-template-columns: 1fr;
  }

  .phone-wrap .float.pf-a {
    left: -2px;
    bottom: 14%;
  }

  .faq summary {
    padding: 16px 48px 16px 18px;
    font-size: 0.96rem;
  }

  .faq details p {
    padding: 0 18px 18px;
  }
}
