/* ==========================================================
   UNIQUE — /pages/folha-de-pagamento.html
   Carregado depois de /css/styles.css e /css/page-produto.css.
   Usa apenas os tokens de styles.css (temas escuro e claro).
   Classes com prefixo fp- para não colidir com outras páginas.
   ========================================================== */

.section[id], .final[id] { scroll-margin-top: 84px; }

/* ---------- Hero: simulador ilustrativo ---------- */
.hero-produto .payroll-card {
  margin-top: 0;
  border-color: var(--line-strong);
  box-shadow: var(--card-shadow), 0 0 120px -40px var(--brand-glow);
}
.hero-produto .float-chip.one .fc-ico { background: var(--signal-soft); color: var(--signal); }
.hero-produto .float-chip.two .fc-ico { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
/* Chips fora do conteúdo do card, para não cobrir o "Exemplo ilustrativo" */
@media (min-width: 1081px) {
  .hero-produto .float-chip.one { left: -30px; bottom: -60px; }
  .hero-produto .float-chip.two { right: -18px; top: -38px; }
}
@media (max-width: 1080px) {
  .hero-produto .float-chip.one { left: 12px; bottom: -60px; }
  .hero-produto .float-chip.two { right: 12px; top: -38px; }
}
.fp-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Comparativo ---------- */
.fp-compare-copy { min-width: 0; }
.fp-compare-copy .diff-points { margin-top: 0; }
.compare caption { text-align: left; }

/* ---------- As 24 faixas ---------- */
.fp-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.fp-col {
  min-width: 0;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 24px;
}
.fp-col h3 {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fp-col h3 b { color: var(--brand); font-weight: 600; }
.fp-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.fp-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.fp-list li > span { font-size: 11px; font-weight: 500; color: var(--dim); }
.fp-na {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  font-size: 14.5px;
  color: var(--muted);
}
.fp-na b {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}

/* ---------- Simulador: regras do card ---------- */
.fp-sim {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  margin-top: 64px;
  align-items: start;
}
.fp-sim > * { min-width: 0; }
.fp-card {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 24px;
}
.fp-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.fp-card-top .bi { color: var(--brand); margin-right: 6px; }
.fp-group + .fp-group { margin-top: 20px; }
.fp-group h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.fp-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fp-rules { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fp-rule {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.fp-rule.base { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 24%, transparent); }
.fp-rule dt { font-size: 14.5px; font-weight: 650; line-height: 1.3; color: var(--text); }
.fp-rule dt span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.fp-rule dd {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.fp-rule dd b { color: var(--text); font-weight: 650; }
.fp-card-foot { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Como usar ---------- */
.fp-how .steps { margin-top: 32px; }
.fp-groups { margin-top: 32px; }
.fp-groups .lane-chips { margin-top: 16px; }
.fp-groups .lane-chips li.on {
  color: var(--signal);
  background: var(--signal-soft);
  border-color: color-mix(in srgb, var(--signal) 32%, transparent);
}

/* ---------- FAQ ---------- */
.fp-faq {
  max-width: 880px;
  margin: 56px auto 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.fp-faq details + details { border-top: 1px solid var(--line); }
.fp-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: var(--text);
  transition: background .2s;
}
.fp-faq summary::-webkit-details-marker { display: none; }
.fp-faq summary:hover { background: var(--surface-2); }
.fp-faq summary:focus-visible { outline: 2px solid var(--brand-2); outline-offset: -2px; }
.fp-faq summary .bi { flex: none; margin-top: 3px; color: var(--muted); transition: transform .2s, color .2s; }
.fp-faq details[open] summary .bi { transform: rotate(180deg); color: var(--brand); }
.fp-faq-a { margin: 0; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.7; color: var(--text-2); }

/* ---------- Páginas relacionadas ---------- */
.fp-rel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.fp-rel a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  align-content: start;
  min-width: 0;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.fp-rel a:hover { border-color: var(--brand); transform: translateY(-2px); }
.fp-rel a:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
.fp-rel .p-ico { grid-row: span 2; }
.fp-rel b { font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.fp-rel b span { color: var(--brand); transition: transform .2s; display: inline-block; }
.fp-rel a:hover b span { transform: translateX(3px); }
.fp-rel small { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .fp-sim { grid-template-columns: 1fr; gap: 40px; }
  .fp-rel { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .fp-cols { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .fp-col { padding: 18px; }
  .fp-card { padding: 18px; border-radius: var(--r-lg); }
  .fp-rules { grid-template-columns: 1fr; }
  .fp-rel { grid-template-columns: 1fr; }
  .fp-rel a { padding: 20px; }
  .fp-faq summary { padding: 16px 18px; font-size: 15.5px; }
  .fp-faq-a { padding: 0 18px 18px; font-size: 15px; }
  .fp-na { padding: 14px 16px; }
}
