/* Página "Alternativa ao Kommo": usa a base do site.css e acrescenta o comparativo. */

/* trilha de navegação */
.crumbs { display: flex; gap: 8px; align-items: center; margin: 0 0 26px; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--pinho-d); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 2px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted-2); }

/* hero */
.alt-hero { padding: 56px 0 0; }
.alt-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.alt-hero-copy { display: grid; gap: 20px; justify-items: start; }
.alt-hero h1 { font-size: clamp(34px, 3.9vw, 52px); font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
.alt-hero h1 em { font-style: normal; background: var(--honey); padding: 0 .12em; border-radius: .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.alt-hero .lead { font-size: 18px; max-width: 600px; }
.alt-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.alt-actions .link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 700 15px var(--display); color: var(--pinho-d); }
.alt-actions .link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.alt-actions .link-arrow:hover svg { transform: translateY(2px); }

/* resumo ao lado do título */
.sum { padding: 26px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sum-head b { font: 700 17px/1.2 var(--display); }
.sum-head span { font-size: 12px; font-weight: 600; color: var(--muted); }
.sum ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sum li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 16px; background: var(--pinho-tint); }
.sum li i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sum li i svg { width: 18px; height: 18px; fill: none; stroke: var(--pinho-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sum li i img { width: 20px; height: 20px; }
.sum li b { display: block; font: 700 15px/1.3 var(--display); }
.sum li small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* tabela comparativa */
.cmp { border-radius: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 18px 22px; text-align: left; vertical-align: top; }
.cmp thead th { font: 700 13px var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.cmp thead th.is-mv { color: var(--pinho-d); }
.cmp thead th.is-mv span { display: inline-flex; align-items: center; gap: 8px; }
.cmp thead th.is-mv svg { width: 22px; height: 15px; fill: var(--pinho); }
.cmp tbody th { width: 22%; font: 700 15.5px/1.35 var(--display); color: var(--ink); }
.cmp tbody tr + tr > * { border-top: 1px solid var(--line-soft); }
.cmp td { color: var(--body); line-height: 1.5; }
.cmp td.is-mv { width: 41%; background: var(--pinho-tint); color: var(--ink); }
.cmp td.is-mv b { font-weight: 700; }
.cmp thead th.is-mv { background: var(--pinho-tint); }
.cmp-note { margin: 14px 4px 0; font-size: 12.5px; color: var(--muted); }
.cmp-note a { color: var(--pinho-d); text-decoration: underline; text-underline-offset: 2px; }

/* onde o Melivu vai além: cartões com um pedaço da tela */
.diffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.diff { display: grid; grid-template-rows: auto 1fr; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.diff-vis { display: grid; align-content: center; gap: 8px; height: 260px; padding: 22px; background: var(--pinho-tint); border-bottom: 1px solid var(--line-soft); }
.diff-copy { display: grid; gap: 8px; align-content: start; padding: 22px 24px 26px; }
.diff-copy h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.diff-copy p { margin: 0; font-size: 15px; color: var(--body); }

.bub { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; background: var(--surface); border: 1px solid var(--line); }
.bub.me { justify-self: end; background: var(--bubble); border-color: transparent; }
.pill { justify-self: center; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 7px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pill img { width: 16px; height: 16px; }
.pill em { font-style: normal; color: #1c8a5a; }

.call { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: var(--deep); color: #fff; }
.call-top { display: flex; align-items: center; gap: 12px; }
.call-av { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--honey); color: var(--on-lime); font: 800 14px var(--display); }
.call-top b { display: block; font: 700 15px/1.25 var(--display); }
.call-top small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .65); }
.call-top time { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--lime); font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; gap: 4px; height: 34px; }
.wave i { flex: 1; height: 30%; border-radius: 3px; background: rgba(200, 246, 83, .75); }
.call-line { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .82); }

.lesson { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lesson-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pinho); }
.lesson-top span { padding: 4px 8px; border-radius: 999px; background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-ink); letter-spacing: 0; text-transform: none; font-weight: 600; }
.lesson p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); }
.lesson-act { display: flex; gap: 8px; }
.lesson-act span { flex: 1; display: grid; place-items: center; height: 36px; border-radius: 10px; font: 700 13px var(--display); border: 1px solid var(--line); color: var(--body); }
.lesson-act span.ok { background: var(--grad); border-color: transparent; color: #fff; }

/* quando o Kommo pode fazer mais sentido */
.fair { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; padding: clamp(28px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.fair-copy { display: grid; gap: 12px; align-content: start; }
.fair ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.fair li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 18px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line-soft); font-size: 15px; color: var(--body); }
.fair li::before { content: ""; width: 28px; height: 28px; border-radius: 9px; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c77' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E") center / 16px no-repeat; }
.fair li b { color: var(--ink); }

/* como trocar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; justify-self: start; min-width: 40px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--honey); color: var(--on-lime); font: 800 13px/1 var(--display); }
.step h3 { font-size: 19px; line-height: 1.25; }
.step p { margin: 0; font-size: 15px; color: var(--body); }
.step .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.step .chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--chip); font-size: 12.5px; font-weight: 600; color: var(--body); }
.step .chips img { width: 14px; height: 14px; }

/* a onda da ligação mexe só para quem não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  .wave i { animation: wave 1.1s ease-in-out infinite alternate; }
  .wave i:nth-child(3n) { animation-delay: -.3s; }
  .wave i:nth-child(3n+1) { animation-delay: -.6s; }
  .wave i:nth-child(4n) { animation-delay: -.9s; }
  @keyframes wave { from { height: 20%; } to { height: 100%; } }
}

@media (max-width: 1100px) {
  .diffs { grid-template-columns: 1fr 1fr; }
  .diffs .diff:last-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .alt-hero { padding-top: 32px; }
  .alt-hero-grid, .fair { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  /* no celular cada linha da tabela vira um cartão */
  .cmp { background: none; border: 0; border-radius: 0; overflow: visible; }
  .cmp table, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp thead { display: none; }
  .cmp tbody { display: grid; gap: 12px; }
  .cmp tbody tr { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
  .cmp tbody tr + tr > * { border-top: 0; }
  .cmp tbody th { width: auto; padding: 16px 18px 10px; }
  .cmp td { padding: 12px 18px 14px; }
  .cmp td.is-mv { width: auto; }
  .cmp td::before { content: attr(data-label); display: block; margin-bottom: 4px; font: 700 11.5px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .cmp td.is-mv::before { color: var(--pinho-d); }
}
@media (max-width: 640px) {
  .diffs { grid-template-columns: 1fr; }
  .alt-actions { gap: 14px; }
  .alt-actions .btn { width: 100%; }
  .sum { padding: 18px; }
}

/* texto só para leitores de tela */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
