/* ════════════════════════════════════════════════
   bpc-benefits-table — tabela comparativa de benefícios
   ════════════════════════════════════════════════ */
.bpc-bt {
	--bpc-ink:    #2b2018;
	--bpc-muted:  #7a6f60;
	--bpc-green:  #2f6b46;
	--bpc-gold:   #b07d1f;
	--bpc-bronze: #a0684a;
	--bpc-prata:  #7d8a95;
	--bpc-line:   #ece4d8;
	--bpc-ouro-bg:#faf2e0;

	box-sizing: border-box;
	width: 100%;
	max-width: 1040px;
	margin-inline: auto;
}
.bpc-bt *, .bpc-bt *::before, .bpc-bt *::after { box-sizing: border-box; }

.bpc-bt__title {
	margin: 0 0 32px;
	text-align: center;
	font-size: clamp(1.7rem, 3.6vw, 2.4rem);
	font-weight: 800;
	color: var(--bpc-ink);
}

.bpc-bt__wrap {
	border: 1px solid var(--bpc-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 34px rgba(43, 32, 24, 0.06);
	overflow: hidden;
}

.bpc-bt__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

/* ── Cabeçalho ─────────────────────────────────── */
.bpc-bt__th {
	padding: 22px 18px;
	font-size: 1.05rem;
	font-weight: 800;
	text-align: center;
	background: #f8efe0;
}
.bpc-bt__th--label { text-align: left; font-size: 0.82rem; letter-spacing: 0.1em; color: var(--bpc-muted); font-weight: 700; }
.bpc-bt__th--bronze { color: var(--bpc-bronze); }
.bpc-bt__th--prata  { color: var(--bpc-prata); }
.bpc-bt__th--ouro   { color: var(--bpc-gold); background: var(--bpc-ouro-bg); }

/* ── Células ───────────────────────────────────── */
.bpc-bt__row-label {
	padding: 20px 18px;
	text-align: left;
	font-size: 1rem;
	font-weight: 600;
	color: var(--bpc-ink);
}
.bpc-bt__cell {
	padding: 20px 18px;
	text-align: center;
	font-size: 0.98rem;
	color: #4a4032;
	border-top: 1px solid var(--bpc-line);
}
.bpc-bt__row-label { border-top: 1px solid var(--bpc-line); }
.bpc-bt__table tbody tr:first-child .bpc-bt__cell,
.bpc-bt__table tbody tr:first-child .bpc-bt__row-label { border-top: 0; }

.bpc-bt__cell--ouro { background: var(--bpc-ouro-bg); }

.bpc-bt__val { color: #4a4032; }
.bpc-bt__val--ouro { color: var(--bpc-gold); font-weight: 700; }

.bpc-bt__check { display: inline-flex; color: var(--bpc-green); }
.bpc-bt__cell--ouro .bpc-bt__check { color: var(--bpc-green); }
.bpc-bt__dash { color: #c4b8a5; }

/* ── Responsivo ────────────────────────────────── */
/* Tablet: tabela fluida (sem rolagem horizontal), só reduz o respiro */
@media (max-width: 760px) {
	.bpc-bt__table { min-width: 0; }
	.bpc-bt__th, .bpc-bt__cell, .bpc-bt__row-label { padding: 15px 12px; }
	.bpc-bt__th { font-size: 0.95rem; }
}

/* ════════════════════════════════════════════════
   Celular: vira LISTA — um cartão por benefício, no
   formato "rótulo : valor" (sem grade, sem rolagem).
   ════════════════════════════════════════════════ */
@media (max-width: 600px) {
	.bpc-bt__title { margin-bottom: 22px; }

	/* Remove a moldura de tabela — cada linha vira um cartão solto */
	.bpc-bt__wrap {
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		overflow: visible;
	}

	.bpc-bt__table,
	.bpc-bt__table tbody,
	.bpc-bt__table tr,
	.bpc-bt__row-label,
	.bpc-bt__cell {
		display: block;
		width: auto;
	}

	.bpc-bt__table { min-width: 0; }
	.bpc-bt__table thead { display: none; } /* cabeçalho de colunas é redundante na lista */

	.bpc-bt__table tbody {
		display: flex;
		flex-direction: column;
		gap: 16px;
	}

	/* Cartão do benefício */
	.bpc-bt__table tr {
		border: 1px solid var(--bpc-line);
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 6px 22px rgba(43, 32, 24, 0.06);
		overflow: hidden;
	}

	/* Nome do benefício = título do cartão */
	.bpc-bt__row-label {
		padding: 15px 18px;
		border-top: 0;
		border-bottom: 1px solid var(--bpc-line);
		background: #faf6ee;
		font-size: 1.02rem;
		font-weight: 700;
	}

	/* Cada plano: rótulo à esquerda (Bronze/Prata/Ouro) + valor à direita */
	.bpc-bt__cell {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 18px;
		text-align: right;
		border-top: 1px solid var(--bpc-line);
	}
	.bpc-bt__cell::before {
		content: attr(data-label);
		flex-shrink: 0;
		font-size: 0.9rem;
		font-weight: 700;
		color: var(--bpc-muted);
		text-align: left;
	}
	/* Evita borda dupla entre o título e o primeiro plano */
	.bpc-bt__row-label + .bpc-bt__cell { border-top: 0; }

	/* Realce do Ouro também na lista */
	.bpc-bt__cell--ouro { background: var(--bpc-ouro-bg); }
	.bpc-bt__cell--ouro::before { color: var(--bpc-gold); }
}
