/* ===== Proposta App + ACS (página privada, acesso por link) ===== */
.pp-pillars,
.pp-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pp-list { margin-top: 1rem; display: grid; gap: 0.55rem; }

.pp-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
}

.pp-list b { color: var(--text-main); }
.pp-list a { color: var(--primary); text-decoration: underline; }

/* Planos */
.pp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.pp-plan--featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.pp-tag {
  position: absolute;
  top: -0.8rem;
  right: 1.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: 600 0.75rem/1 'Inter', sans-serif;
}

.pp-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--secondary);
  color: var(--accent);
  font: 700 1rem/1 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 1rem;
}

.pp-plan h3 { font-size: 1.3rem; }
.pp-lead { color: var(--primary); font-weight: 600; margin: 0.25rem 0 0.75rem; }
.pp-plan > p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.6; }
.pp-plan .pp-list { flex: 1; margin-bottom: 1.5rem; }
.pp-plan-btn { align-self: flex-start; }

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Tabelas */
.pp-table-wrap {
  margin-top: 2.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pp-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.pp-table th, .pp-table td { padding: 0.9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--border); }
.pp-table tr:last-child th, .pp-table tr:last-child td { border-bottom: 0; }
.pp-table thead th { background: var(--secondary); color: #fff; font-family: 'Plus Jakarta Sans', sans-serif; }
.pp-table tbody th { color: var(--secondary); font-weight: 600; white-space: nowrap; }
.pp-table td { color: var(--text-muted); font-variant-numeric: tabular-nums; }

.pp-note {
  margin-top: 2rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.pp-note h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.pp-note p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* Simulador */
.pp-sim {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.pp-sim-form {
  display: grid;
  gap: 1.75rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.pp-field { border: 0; display: grid; gap: 0.5rem; }
.pp-field[hidden] { display: none; }
.pp-field > label, .pp-field legend { font: 600 1rem 'Plus Jakarta Sans', sans-serif; color: var(--secondary); margin-bottom: 0.25rem; }
.pp-field small { color: var(--text-muted); font-size: 0.85rem; }

.pp-field input[type="number"] {
  width: 100%;
  max-width: 220px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: 600 1.15rem 'Inter', sans-serif;
  color: var(--text-main);
  background: var(--bg-color);
}
.pp-field input[type="number"]:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.pp-field input[type="range"] { width: 100%; accent-color: var(--primary); }

.pp-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.pp-seg label { cursor: pointer; }
.pp-seg input { position: absolute; opacity: 0; pointer-events: none; }
.pp-seg span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}
.pp-seg small { font-weight: 500; color: var(--primary); font-size: 0.8rem; }
.pp-seg input:checked + span { border-color: var(--primary); background: rgba(0, 229, 163, 0.12); box-shadow: inset 0 0 0 1px var(--primary); }
.pp-seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.pp-sim-result {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius-md);
  background: radial-gradient(circle at 90% 10%, rgba(0, 229, 163, 0.18) 0%, rgba(0, 229, 163, 0) 50%), var(--secondary);
  color: #fff;
}

.pp-res-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }
.pp-res-value { font: 800 clamp(2rem, 4vw, 2.6rem)/1.15 'Plus Jakarta Sans', sans-serif; color: var(--accent); margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.pp-res-setup { font: 700 1.4rem/1.2 'Plus Jakarta Sans', sans-serif; margin-bottom: 1.25rem; font-variant-numeric: tabular-nums; }

.pp-res-lines { display: grid; gap: 0.4rem; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.15); margin-bottom: 1rem; }
.pp-res-lines div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.pp-res-lines dd { font-variant-numeric: tabular-nums; white-space: nowrap; }

.pp-res-ref { font-size: 0.85rem; line-height: 1.55; color: rgba(255, 255, 255, 0.65); flex: 1; margin-bottom: 1.25rem; }
.pp-res-btn { align-self: stretch; }

.pp-prices {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pp-prices > div { padding: 1.5rem; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.pp-prices h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.pp-prices p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-top: 0.4rem; }
.pp-prices b { color: var(--text-main); }

.pp-terms { margin-top: 2rem; display: grid; gap: 0.5rem; }
.pp-terms li { position: relative; padding-left: 1.4rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.pp-terms li::before { content: '•'; position: absolute; left: 0.3rem; color: var(--primary); font-weight: 700; }
.pp-terms a { color: var(--primary); text-decoration: underline; }

/* Requisitos */
.pp-req-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pp-req-grid h3 { font-size: 1.1rem; }
.pp-sub { margin-top: 3rem; font-size: 1.25rem; }
.pp-sub + .pp-table-wrap { margin-top: 1rem; }
.pp-foot { margin-top: 1rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* Lojas */
.pp-why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pp-store {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.pp-store h3 { font-size: 1.1rem; }

.ap-features .section-header,
.ap-how .section-header { margin-bottom: 3rem; }

@media (max-width: 992px) {
  .pp-pillars, .pp-plans, .pp-prices, .pp-req-grid { grid-template-columns: 1fr; }
  .pp-sim { grid-template-columns: 1fr; }
  .pp-plans { gap: 2rem; }
}

@media (max-width: 576px) {
  .container { padding: 0 1rem; }
  .pp-why, .pp-store { grid-template-columns: 1fr; }
  .pp-seg { grid-template-columns: 1fr; }
  .pp-sim-form, .pp-sim-result, .pp-store { padding: 1.25rem; }
  .pp-plan { padding: 1.75rem 1.25rem; }
}
.pp-link { color: var(--primary); text-decoration: underline; }

/* Exemplo 5.000 clientes */
.pp-example {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
.pp-example-head { display: flex; gap: 2rem; align-items: flex-start; justify-content: space-between; }
.pp-example-head h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.pp-example-head p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; max-width: 760px; }
.pp-example-head .btn { flex-shrink: 0; }
.pp-example .pp-table-wrap { margin-top: 1.5rem; }
.pp-example .pp-table td b { color: var(--primary); }
.pp-count { margin-top: 1.5rem; }
.pp-count h4 { font-size: 1rem; color: var(--secondary); }

@media (max-width: 768px) {
  .pp-example { padding: 1.25rem; }
  .pp-example-head { flex-direction: column; gap: 1rem; }
}

@media (max-width: 576px) {
  .pp-example .pp-table { min-width: 0; }
  .pp-example .pp-table th:nth-child(2), .pp-example .pp-table td:nth-child(2),
  .pp-example .pp-table th:nth-child(3), .pp-example .pp-table td:nth-child(3) { display: none; }
}
.pp-example .pp-table td b { white-space: nowrap; }

/* Quatro cartões: 2 × 2 (outubro/2026, documentação de rede) */
.pp-pillars--4, .pp-prices--4 { grid-template-columns: repeat(2, 1fr); }
.pp-seg-hint { display: block; margin-top: 0.6rem; color: var(--text-muted); font-size: 0.85rem; }
@media (max-width: 992px) {
  .pp-pillars--4, .pp-prices--4 { grid-template-columns: 1fr; }
}
@media (max-width: 576px) {
  .pp-example .pp-table th:nth-child(4), .pp-example .pp-table td:nth-child(4) { display: none; }
}

/* Grade de duas colunas com número ímpar de itens: o último ocupa a linha inteira */
.pp-pillars--4 > :last-child:nth-child(odd), .pp-prices--4 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
