/* ==========================================================================
   Wise Funnel · whatsapp.html (estilos específicos da página)
   Usa apenas tokens e componentes de site.css / scenes.css.
   ========================================================================== */


.wa-sub { display: flex; align-items: center; gap: 10px; }
.wa-sub .i { color: var(--c-red-soft); }
.wa-sub--lg { font-size: var(--fs-h3); font-weight: 400; letter-spacing: var(--track-h3); line-height: 1.2; align-items: flex-start; }
.wa-sub--lg .i { margin-top: .3em; flex: none; }

/* ---------- Herói ---------- */
.wa-hero-scene { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.wa-hs { left: 24px; top: 20px; width: 592px; height: 260px; padding: 20px 24px; }
.wa-hs .ui-row { gap: 12px; }
.wa-hs__tag { margin-left: auto; }
.wa-hs__track { position: relative; height: 4px; margin: 58px 28px 0; border-radius: 2px; background: rgb(255 255 255 / .08); }
.wa-hs__fill { position: absolute; inset: 0; border-radius: 2px; background: var(--c-red-600); transform: scaleX(0); transform-origin: left; animation: wa-fill 9s linear infinite; }
.wa-hs__node { position: absolute; top: 2px; width: 30px; height: 30px; margin: -15px 0 0 -15px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); background: #1c1c1f; font-size: 12px; color: rgb(244 244 242 / .6); }
.wa-hs__node b { position: relative; z-index: 1; font-family: var(--font-mono); font-weight: 400; }
.wa-hs__node i { position: absolute; inset: -1px; border-radius: 50%; background: var(--c-red-600); opacity: 0; }
.wa-hs__node em { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; color: rgb(244 244 242 / .6); white-space: nowrap; }
.wa-hs__node--1 { left: 0; } .wa-hs__node--2 { left: 50%; } .wa-hs__node--3 { left: 100%; }
.wa-hs__node--1 i { animation: wa-on-1 9s linear infinite; }
.wa-hs__node--2 i { animation: wa-on-2 9s linear infinite; }
.wa-hs__node--3 i { animation: wa-on-3 9s linear infinite; }
.wa-hs__node--3 b, .wa-hs__node--2 b, .wa-hs__node--1 b { color: #fff; mix-blend-mode: normal; }
.wa-hs__status { position: relative; height: 40px; margin-top: 58px; }
.wa-hs__idle, .wa-hs__ban { position: absolute; left: 0; right: 0; top: 0; }
.wa-hs__idle { animation: wa-idle 9s linear infinite; }
.wa-hs__ban { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgb(243 51 61 / .35); border-radius: 10px; background: rgb(243 51 61 / .12); color: var(--c-red-soft); font-size: 13px; line-height: 1.35; opacity: 0; animation: wa-ban 9s linear infinite; }
.wa-hs__ban .i { width: 18px; height: 18px; flex: none; stroke-width: 2; }
@media (max-width: 719px) {
  .wa-hs { left: 24px; top: 20px; width: 372px; height: 290px; padding: 18px; }
  .wa-hs .ui-sub { font-size: 11px; }
  .wa-hs__track { margin: 56px 24px 0; }
  .wa-hs__status { height: 56px; margin-top: 56px; }
}
@keyframes wa-fill { 0%, 8% { transform: scaleX(0); } 40%, 48% { transform: scaleX(.5); } 78%, 93% { transform: scaleX(1); } 98%, 100% { transform: scaleX(0); } }
@keyframes wa-on-1 { 0%, 6% { opacity: 0; } 10%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes wa-on-2 { 0%, 44% { opacity: 0; } 48%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes wa-on-3 { 0%, 78% { opacity: 0; } 82%, 93% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes wa-idle { 0%, 80% { opacity: 1; } 84%, 93% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes wa-ban { 0%, 82% { opacity: 0; transform: translateY(6px); } 87%, 93% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .wa-hs__fill { transform: scaleX(1); animation: none; }
  .wa-hs__node i, .wa-hs__ban { opacity: 1; animation: none; transform: none; }
  .wa-hs__idle { opacity: 0; animation: none; }
}

.wa-stats { display: grid; gap: 0; margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid var(--c-line); }
.wa-stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.wa-stat dt { font-size: var(--fs-sm); color: var(--c-muted); }
.wa-stat dd { font-size: clamp(36px, 5vw, 56px); line-height: 1; color: var(--c-fg); margin: 0; }
.wa-stat--ok dd { color: var(--c-ok); }
@media (min-width: 760px) {
  .wa-stats { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--c-line); }
  .wa-stat { padding: 32px 28px; border-bottom: 0; border-left: 1px solid var(--c-line); }
  .wa-stat:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Problema ---------- */
.wa-problem { align-items: start; }
.wa-causes { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--c-line); }
.wa-causes li, .wa-pillars li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.wa-causes .mono, .wa-pillars .mono { font-size: 13px; color: var(--c-red-soft); padding-top: 3px; }
.wa-causes h4, .wa-pillars h3 { font-size: var(--fs-h4); font-weight: 500; line-height: 1.4; color: var(--c-fg); }
.wa-causes p, .wa-pillars p { margin-top: 6px; font-size: var(--fs-sm); line-height: 1.55; color: var(--c-muted); text-align: left; text-wrap: pretty; }

.wa-strike { flex-direction: row; gap: 16px; align-items: flex-start; padding: 20px; transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-std); }
.wa-strike:hover { transform: translateX(8px); }
.wa-strike h4 { font-size: var(--fs-h4); font-weight: 500; color: #FAFAF8; }
.wa-strike p { margin-top: 6px; }
.wa-strike__ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; }
.wa-strike__ico .i { width: 18px; height: 18px; stroke-width: 2; }
.wa-strike--1 .wa-strike__ico { background: rgb(240 180 80 / .12); color: var(--c-warn); }
.wa-strike--2 .wa-strike__ico { background: rgb(243 130 61 / .14); color: #F0894A; }
.wa-strike--3 .wa-strike__ico { background: var(--c-red-tint); color: var(--c-red-soft); }
.wa-strike--3 { border-color: rgb(243 51 61 / .28); }
.wa-alert-note { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 16px 18px; border: 1px solid rgb(243 51 61 / .35); border-radius: var(--r-md); background: var(--c-red-tint); color: var(--c-red-soft); font-weight: 500; line-height: 1.4; }
.wa-alert-note .i { flex: none; }

/* ---------- Comparativo ---------- */
.wa-path { gap: 14px; }
.wa-path__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wa-path__top .chip:first-of-type { margin-left: auto; }
.wa-path__rec { margin-left: 0; }
.wa-path__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-md); border: 1px solid var(--c-hairline); background: var(--c-frost); }
.wa-path__ico .i { width: 20px; height: 20px; stroke-width: 1.9; }
.wa-path--bad .wa-path__ico { color: var(--c-red-soft); }
.wa-path--mid .wa-path__ico { color: var(--c-warn); }
.wa-path--good .wa-path__ico { color: var(--c-ok); }
.wa-path--good { border-color: rgb(87 199 138 / .3); }
.wa-path p { max-width: none; }
.wa-path__note { display: flex; align-items: center; gap: 14px; margin-top: auto !important; padding-top: 18px; border-top: 1px solid var(--c-line); color: var(--c-fg-2) !important; font-size: var(--fs-sm); }
.wa-path__note strong { font-size: 40px; line-height: 1; font-weight: 400; color: var(--c-fg); flex: none; display: inline-flex; }
.wa-path__note strong .i { width: 32px; height: 32px; color: var(--c-warn); }
.wa-path--bad .wa-path__note strong { color: var(--c-red-soft); }
.wa-path--good .wa-path__note strong { color: var(--c-ok); }

.cmp { position: relative; overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--c-line-inv); background: var(--c-light); color: var(--c-ink); }
.cmp table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { padding: 14px 6px; text-align: center; font-size: 12px; hyphens: manual; overflow-wrap: break-word; line-height: 1.35; border-bottom: 1px solid var(--c-line-inv); vertical-align: middle; }
.cmp th[scope="row"] { text-align: left; font-weight: 500; padding-left: 10px; width: 30%; color: var(--c-ink); }
.cmp thead th { font-size: 12px; font-weight: 600; padding-block: 20px; letter-spacing: -.005em; }
.cmp td { color: var(--c-ink-2); }
.cmp .is-pick { background: rgb(229 22 28 / .06); border-left: 1px solid rgb(229 22 28 / .14); }
.cmp thead .is-pick { color: var(--c-red-800); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 1px solid var(--c-line-inv); }
.cmp tfoot tr > * { border-bottom: 0; }
.cmp .i { display: inline-block; width: 18px; height: 18px; stroke-width: 2.2; vertical-align: middle; }
.cmp .yes { color: #1F8A57; }
.cmp .no { color: #B3362F; }
.cmp .dots { display: inline-flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dot--red { background: #D8352F; } .dot--warn { background: #D99A1E; } .dot--ok { background: #1F8A57; } .dot--off { background: rgb(0 0 0 / .14); }
.cmp .lvl { font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.lvl--red { color: #B3362F; } .lvl--warn { color: #A56F0B; } .lvl--ok { color: #1F8A57; }
.cmp .foot { font-weight: 500; font-size: 12.5px; padding-block: 18px; }
/* Celular estreito: a tabela mantém colunas legíveis (sem palavras quebradas) e rola na horizontal,
   com a coluna de critérios fixa à esquerda. */
@media (max-width: 519px) {
  .cmp { overscroll-behavior-x: contain; }
  .cmp table { min-width: 452px; }
  .cmp th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 112px; background: var(--c-light); box-shadow: 1px 0 0 var(--c-line-inv); }
  .cmp thead tr > :first-child, .cmp tfoot tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--c-light); }
}
.foot--red { color: #B3362F; } .foot--warn { color: #A56F0B; } .foot--ok { color: #1F8A57; }
@media (min-width: 760px) {
  .cmp th, .cmp td { padding: 20px 24px; font-size: 14px; }
  .cmp th[scope="row"] { padding-left: 24px; }
  .cmp thead th { font-size: 15px; }
  .cmp .foot { font-size: 14px; }
  .cmp th[scope="row"] { width: 34%; }
}

.wa-coex { margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.wa-pros .i { color: var(--c-ok); }
.wa-cons .checklist .i { color: var(--c-red-soft); }
.wa-pros .card__title .i, .wa-cons .card__title .i { width: 18px; height: 18px; }
.wa-choice { margin-top: clamp(56px, 7vw, 96px); display: grid; gap: 24px; }
.wa-choice .feature-note { margin-top: 0; align-items: center; }

/* ---------- Solução ---------- */
.wa-pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line); }
.wa-results { margin: clamp(40px, 5vw, 64px) 0 0; }
.wa-results .card { gap: 10px; flex-direction: column; }
.wa-results dd { margin: auto 0 0; font-size: clamp(36px, 4vw, 48px); line-height: 1.05; color: var(--c-fg); }
.wa-results dt { font-size: var(--fs-sm); color: var(--c-muted); }

/* ---------- Simulador ---------- */
.sim { display: grid; gap: 16px; align-items: start; }
@media (min-width: 960px) { .sim { grid-template-columns: 1.15fr 1fr; gap: 24px; } .sim__result { position: sticky; top: calc(var(--header-h) + 24px); } }
.sim__controls { display: grid; gap: 28px; padding: 24px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: rgb(19 19 21 / .4); }
@media (min-width: 760px) { .sim__controls { padding: 32px; } }
.sim__controls .feature-note { margin-top: 0; background: var(--c-frost); }
.sim__field { display: grid; gap: 12px; }
.sim__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sim__row label { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--c-fg); line-height: 1.35; }
.sim__row label .i { color: var(--c-red-soft); flex: none; }
.sim__row output { font-size: 24px; color: var(--c-fg); min-width: 3ch; text-align: right; }
.sim__scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--c-muted); padding-inline: 2px; }
.sim__controls .sim__hint { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-xs); line-height: 1.5; color: var(--c-muted); }
.sim__hint .i { width: 14px; height: 14px; margin-top: 2px; color: var(--c-red-soft); }

.sim-range { --p: 0%; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; touch-action: pan-y; }
.sim-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--c-red-600) var(--p), rgb(255 255 255 / .1) var(--p)); }
.sim-range::-moz-range-track { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .1); }
.sim-range::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--c-red-600); }
.sim-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 4px solid var(--c-red-600); box-shadow: 0 2px 8px rgb(0 0 0 / .5); transition: transform var(--t-fast) var(--ease-out); }
.sim-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--c-red-600); box-shadow: 0 2px 8px rgb(0 0 0 / .5); }
.sim-range:hover::-webkit-slider-thumb, .sim-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.sim-range:focus-visible { outline: 2px solid var(--c-red-soft); outline-offset: 4px; border-radius: 6px; }

.sim__result { gap: 24px; padding: 24px; }
@media (min-width: 760px) { .sim__result { padding: 32px; } }
.sim__lines { display: grid; gap: 0; padding: 0; list-style: none; }
.sim__lines li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--c-line); font-size: var(--fs-sm); color: var(--c-fg-2); }
.sim__lines li:first-child { padding-top: 0; }
.sim__lines li > span:first-child { display: flex; align-items: center; gap: 10px; }
.sim__lines .i { color: var(--c-red-soft); flex: none; }
.sim__lines b { font-weight: 400; color: var(--c-fg); white-space: nowrap; }
.sim__total { display: grid; gap: 4px; }
.sim__result .sim__total-label { font-weight: 500; color: var(--c-fg); }
.sim__result .sim__total-sub { font-size: var(--fs-xs); color: var(--c-muted); }
.sim__result .sim__total-value { max-width: none; margin-top: 10px; font-size: clamp(44px, 7vw, 64px); line-height: 1; color: var(--c-fg); }
.sim__result .sim__daily { font-size: var(--fs-sm); color: var(--c-red-soft); }
.sim__result .sim__compare { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-md); background: rgb(0 0 0 / .25); font-size: var(--fs-sm); line-height: 1.55; color: var(--c-fg-2); text-align: left; }
.sim__compare .i { margin-top: 2px; color: var(--c-red-soft); }
.sim__result .sim__compare strong { color: var(--c-fg); font-weight: 500; }

/* ---------- CTA final ---------- */
.wa-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; padding: 0; list-style: none; margin-top: 8px; }
.wa-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--c-ink-2); }
.wa-trust .i { color: var(--c-red-800); }
