/* ==========================================================
   Landing: diagnóstico financeiro empresarial
   Complementa styles.css (tokens, botões, topbar, footer, banner).
   ========================================================== */
:root { --alert: #a03a2c; }

.lp .topbar-inner .btn { margin-left: auto; white-space: nowrap; }

.btn-lg { padding: 17px 32px; font-size: 1.0625rem; }

/* --- ritmo entre seções claras: divisor fino + respiro dentro do container.
   Seletor com .lp para vencer o `.section { padding }` do bloco mobile de
   styles.css (mesma especificidade, vem depois). */
.lp .section-rule,
.lp .section-quem { padding-top: 0; }

.lp .section-rule > .container,
.lp .quem-inner {
  position: relative;
  border-top: 0;
  padding-top: 88px;
}

/* divisor alinhado ao texto (o container tem 24px de respiro lateral) */
.lp .section-rule > .container::before,
.lp .quem-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: var(--line);
}

/* --- hero --- */
.lp .hero { padding: 64px 0 80px; }

.lp .hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }

.hero-trust {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 34em;
  font-size: 0.875rem;
  color: #33443c;
}

/* --- exemplo do relatório (peça ilustrativa) --- */
.report-wrap { min-width: 0; }

.report {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 44px -26px rgba(15, 36, 27, 0.45);
  overflow: hidden;
  font-family: var(--font-mono);
}

.report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  background: var(--pine);
  color: var(--on-pine);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.report-tag { color: var(--brass-bright); }

.report-body { padding: 6px 20px 2px; }

.report-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--chart-axis);
  font-size: 0.9rem;
}

.report-row span:first-child { color: #3c4c44; }

.report-row span:last-child {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.report-row.total {
  border-bottom: 1.5px solid var(--pine);
  font-weight: 500;
}
.report-row.total span:first-child,
.report-row.total span:last-child { color: var(--pine); }

.report-row.alert { border-bottom: none; }
.report-row.alert span:first-child,
.report-row.alert span:last-child { color: var(--alert); font-weight: 500; }

.report-note {
  margin-top: 8px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--creme);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.55;
  color: #33443c;
}

.report-caption {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: #5a6a61;
}

/* --- sinais (reconhecimento do problema) --- */
.signs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}

/* Esta lista vive na seção escura (.section-dark): cores claras. */
.signs li {
  position: relative;
  padding: 22px 0 22px 28px;
  border-top: 1px solid var(--on-pine-line);
  color: var(--on-pine-2);
}

.signs li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 31px;
  width: 8px;
  height: 8px;
  background: var(--brass-bright);
}

.signs-close {
  margin-top: 36px;
  max-width: 28em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  color: var(--on-pine);
  text-wrap: balance;
}

/* --- o que você recebe --- */
.deliver {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 40px;
}

.deliver li {
  padding-top: 18px;
  border-top: 2px solid var(--pine);
}

.deliver h3 { color: var(--pine); margin-bottom: 8px; }
.deliver p { font-size: 0.9688rem; color: #3c4c44; }

/* --- faixa de CTA no meio da página --- */
.cta-band {
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 32px;
  padding: 30px 34px;
  background: var(--pine);
  border-radius: var(--radius);
}

.cta-band p {
  max-width: 24em;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--on-pine);
}

/* --- para quem é / não é --- */
.fit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.fit-col {
  padding: 30px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fit-col h3 { color: var(--pine); margin-bottom: 16px; }

.fit-col ul {
  list-style: none;
  display: grid;
  gap: 14px;
}

.fit-col li {
  position: relative;
  padding-left: 30px;
  font-size: 0.9688rem;
  color: #3c4c44;
}

.fit-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
}

.fit-yes li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d52' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.fit-no { background: transparent; border-style: dashed; }

.fit-no li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2395a09a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* --- perguntas frequentes --- */
.faq { max-width: 820px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--pine);
}

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

.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -8px;
  border-right: 2px solid var(--brass);
  border-bottom: 2px solid var(--brass);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.faq details[open] summary::after {
  margin-top: -3px;
  transform: rotate(-135deg);
}

.faq summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.faq details p {
  max-width: 62ch;
  padding: 0 40px 22px 0;
  font-size: 0.9688rem;
  color: #3c4c44;
}

/* ==========================================================
   Responsivo
   ========================================================== */
@media (max-width: 920px) {
  .report-wrap { max-width: 520px; }
  .deliver { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .lp .hero { padding: 40px 0 56px; }
  .lp .section-rule > .container,
  .lp .quem-inner { padding-top: 64px; }
  .signs { grid-template-columns: 1fr; }
  .deliver { grid-template-columns: 1fr; gap: 28px; }
  .fit { grid-template-columns: 1fr; }
  .report-head { font-size: 0.66rem; letter-spacing: 0.08em; padding: 12px 16px; }
  .report-body, .report-note { padding-left: 16px; padding-right: 16px; }
  .lp .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; gap: 10px 14px; }
  .lp .cookie-text { flex-basis: 100%; font-size: 0.8125rem; line-height: 1.4; }
  .lp .cookie-actions { width: 100%; }
  .lp .cookie-actions .btn { flex: 1; padding: 9px 12px; }
  .cta-band { padding: 26px 24px; }
  .cta-band p { font-size: 1.35rem; }
  .btn-lg { width: 100%; text-align: center; }
  .hero-actions .btn-lg { flex: 1 1 100%; }
}

/* --- páginas de serviço: hero de coluna única --- */
.hero-solo .hero-inner { grid-template-columns: minmax(0, 1fr); }
.hero-solo .hero-copy { max-width: 760px; }

/* ==========================================================
   Calculadora de correção monetária
   ========================================================== */
.signs-claro li { color: #33443c; border-top-color: var(--line); }
.signs-claro li::before { background: var(--brass); }
.cta-extra { margin-top: 18px; font-size: 0.9375rem; }
.cta-extra a { color: var(--on-pine); text-underline-offset: 3px; }

.calc-section { padding-top: 24px; }

.calc {
  padding: 28px;
  background: color-mix(in srgb, var(--paper) 70%, var(--line));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px 20px;
}

.field label,
.field-check label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pine);
}

.field input[type="text"],
.field input[type="date"],
.field select {
  display: block;
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 12px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--ink);
  background-color: color-mix(in srgb, var(--paper) 55%, #fff);
  border: 1.5px solid #c9d1c3;
  border-radius: var(--radius);
}

.field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  align-items: center;
  text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; min-height: 1.2em; }
.field input[type="date"]::-webkit-datetime-edit { padding: 0; line-height: 1.2; }
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper { padding: 0; }

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314382b' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field input:focus-visible,
.field select:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }

.field small { display: block; margin-top: 5px; font-size: 0.75rem; color: #5a6a61; }

.field-check { align-self: end; }
.field-check label { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-weight: 500; }
.field-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pine); }

.calc-opts { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 4px; }
.calc-opts summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  color: var(--pine);
}
.calc-opts summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.calc-opts[open] summary { padding-bottom: 18px; }

.calc-botoes { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.calc-fonte { font-size: 0.8125rem; color: #5a6a61; max-width: 40em; }

.calc-erro {
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 0.9375rem;
  color: var(--alert);
  background: #fbefec;
  border: 1px solid #e8c5bd;
  border-radius: var(--radius);
}

.calc-resultado { margin-top: 36px; scroll-margin-top: 90px; }
.calc-resultado .report { max-width: 640px; }

.calc-avisos {
  list-style: none;
  max-width: 640px;
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 0.875rem;
  color: #6b4e12;
  background: #fbf3e0;
  border: 1px solid #ecd9a8;
  border-radius: var(--radius);
}
.calc-avisos li + li { margin-top: 4px; }

.calc-acoes { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.calc-h2 { margin-top: 40px; font-size: 1.5rem; color: var(--pine); }

.memoria-wrap { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.memoria { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.memoria th, .memoria td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.memoria th { position: sticky; top: 0; background: var(--pine); color: var(--on-pine); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.memoria th:first-child, .memoria td:first-child { text-align: left; }
.memoria tbody tr:last-child td { border-bottom: 0; font-weight: 500; }
.memoria-wrap { max-height: 520px; overflow-y: auto; }

.calc-cta { margin-top: 44px; }
.calc-nota { margin-top: 36px; max-width: 62ch; font-size: 0.875rem; color: #5a6a61; }

@media (max-width: 920px) {
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .calc { padding: 20px 16px; }
  .calc-grid { grid-template-columns: 1fr; }
}

@media print {
  .topbar, .footer, .cookie-banner, .hero, .calc, .calc-acoes, .calc-cta, .calc-h2 + .memoria-wrap ~ *,
  #metodo-calculo, #cuidados, #perguntas, #contato { display: none !important; }
  body { background: #fff; }
  .calc-resultado { margin-top: 0; }
  .memoria-wrap { max-height: none; overflow: visible; border: 0; }
  .memoria th { position: static; color: #000; background: #eee; }
}
