﻿/* CALCULADORA v4 (26/10/2026): limpa, uma coisa por vez, resultado grande e brincável, botão fixo no rodapé. */
:root { --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --soft: #f8fafc; --acc: #16a34a; --acc-d: #15803d; --acc-soft: #ecfdf3; --dark: #0b1220; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.cz-wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

.cz-hero { padding: 34px 0 18px; text-align: center; }
.cz-kicker { display: inline-block; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: var(--acc-soft); font-size: 13px; font-weight: 700; color: var(--acc-d); }
.cz-hero h1 { margin: 0; font-size: 31px; line-height: 1.15; font-weight: 900; letter-spacing: -.03em; }
.cz-hero h1 em { font-style: normal; color: var(--acc); }

/* pergunta */
.cz-ask label { display: block; margin: 0 0 10px; font-size: 16px; font-weight: 700; text-align: center; }
.cz-row { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); }
.cz-row:focus-within { box-shadow: inset 0 0 0 2px var(--acc); background: #fff; }
.cz-ask input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 12px 10px; border: 0; background: transparent; color: var(--ink); }
.cz-ask input:focus { outline: none; }
.cz-ask button { border: 0; border-radius: 12px; font: inherit; font-weight: 800; font-size: 16px; padding: 12px 18px; background: var(--acc); color: #fff; cursor: pointer; }
.cz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.cz-chips button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.cz-chips button:hover, .cz-qual-g button:hover { border-color: var(--acc); }

/* tema desconhecido: escolher o parecido */
.cz-qual { margin-top: 26px; }
.cz-qual-t { margin: 0 0 12px; text-align: center; font-weight: 800; font-size: 17px; }
.cz-qual-g { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cz-qual-g button { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.2; }
.cz-qual-g i { font-style: normal; font-size: 20px; }

/* resultado */
#res { margin-top: 26px; }
.cz-res { text-align: center; padding: 24px 18px 18px; border-radius: 22px; background: linear-gradient(180deg, var(--acc-soft), #fff 75%); box-shadow: inset 0 0 0 1px #bbf7d0; }
.cz-emoji { font-size: 44px; line-height: 1; animation: pulo .5s ease; }
@keyframes pulo { 0% { transform: scale(.4); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
.cz-label { margin: 10px 0 0; font-size: 16px; color: #334155; }
.cz-big { margin: 4px 0 0; font-size: 46px; line-height: 1.05; font-weight: 900; letter-spacing: -.03em; color: var(--acc-d); font-variant-numeric: tabular-nums; }
.cz-big small { font-size: 18px; font-weight: 700; letter-spacing: 0; }

.cz-ctl { margin-top: 20px; padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line), inset 0 0 0 1px var(--line); text-align: left; }
.cz-ctl label { display: block; font-size: 14px; color: var(--muted); }
.cz-ctl label b { color: var(--ink); }
.cz-ctl input[type=range] { width: 100%; margin: 12px 0 6px; accent-color: var(--acc); height: 28px; }
.cz-freq { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.cz-freq button { border: 1px solid var(--line); background: var(--soft); border-radius: 10px; padding: 9px 4px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.cz-freq button small { display: block; margin-top: 1px; font-size: 10.5px; font-weight: 600; opacity: .8; }
.cz-freq button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.cz-mini { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.cz-en { margin-top: 14px; width: 100%; border: 1.5px dashed #f59e0b; background: #fffbeb; color: #92400e; border-radius: 14px; padding: 12px; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.cz-en[aria-pressed=true] { border-style: solid; }

.cz-como { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: left; }
.cz-como summary { cursor: pointer; font-weight: 600; text-align: center; }
.cz-como p { margin: 8px 0 0; line-height: 1.5; }

/* brinde */
.cz-gift { margin-top: 16px; padding: 22px 18px; border-radius: 22px; background: var(--dark); color: #fff; text-align: center; }
.cz-gift-ic { font-size: 40px; line-height: 1; animation: balanco 2.4s ease-in-out infinite; }
@keyframes balanco { 0%, 100% { transform: rotate(0); } 10% { transform: rotate(-12deg); } 20% { transform: rotate(10deg); } 30% { transform: rotate(0); } }
.cz-gift-t { margin: 10px 0 0; font-size: 20px; font-weight: 900; }
.cz-gift-p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: #cbd5e1; }
.cz-btn { display: block; margin-top: 16px; padding: 15px; border-radius: 14px; background: #22c55e; color: #052e16; font-weight: 800; font-size: 17px; text-decoration: none; }
.cz-gift-m { margin: 8px 0 0; font-size: 12px; color: #94a3b8; }

.cz-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 9; max-width: 536px; margin: 0 auto; padding: 15px; border-radius: 14px;
  background: var(--acc); color: #fff; font-weight: 800; text-align: center; text-decoration: none; box-shadow: 0 10px 28px rgba(15,23,42,.25); }
.cz-foot { padding: 18px 16px 96px; font-size: 12px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) { .cz-emoji, .cz-gift-ic { animation: none; } }
/* PC: menos cara de celular */
@media (min-width: 900px) {
  .cz-wrap { max-width: 720px; } .cz-sticky { max-width: 696px; }
  .cz-hero h1 { font-size: 44px; } .cz-big { font-size: 60px; }
  .cz-qual-g { grid-template-columns: repeat(3, 1fr); }
}
.cz-freq-t { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
/* 27/10: tempo de canal + vídeos antigos */
.cz-quando { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--acc-d); }
.cz-ctl label small { font-size: 12px; }
.cz-tempo-l { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.cz-acum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.cz-acum-p { padding: 10px; border-radius: 12px; background: var(--soft); }
.cz-acum-p span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cz-acum-p b { display: block; margin-top: 2px; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.cz-acum i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.dn, .cz-graf .gn { background: var(--acc); fill: var(--acc); }
.da, .cz-graf .ga { background: #86efac; fill: #86efac; }
.cz-graf { display: block; width: 100%; height: 96px; margin-top: 12px; }
.cz-graf .fora { fill: #e2e8f0; }
.cz-graf .gm { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.cz-graf-x { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--muted); }

.cz-media { margin: 10px 0 4px; text-align: left; }
/* 27/10: barra que a pessoa ajusta (não é média do tema) */
.cz-esc { font-weight: 700; color: var(--ink) !important; }
.cz-arr { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-d); font-size: 11.5px; font-weight: 800; white-space: nowrap; animation: cutuca 1.8s ease-in-out 3; }
@keyframes cutuca { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.cz-val { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.cz-val b { font-size: 22px; font-weight: 900; color: var(--acc-d); }
.cz-ctl input[type=range] + .cz-ticks { margin-top: -4px; }
.cz-ticks { display: flex; justify-content: space-between; padding: 0 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .cz-arr { animation: none; } }
/* 27/10: média em destaque + "pode chegar a" embaixo */
.cz-max { display: inline-block; margin: 10px 0 0; padding: 6px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #bbf7d0; font-size: 14px; color: #334155; }
.cz-max b { color: var(--acc-d); font-weight: 900; }
.cz-acum-p small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }

.cz-mude { margin: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
