/**
 * Clique pelo Bem — Homepage v2
 * Réplica fiel do mockup v0: fundo branco, verde acento, Inter, cards clean.
 */

/* ── Reset & Base ── */
.cpb {
	--green-50: #f0fdf4;
	--green-100: #dcfce7;
	--green-200: #bbf7d0;
	--green-500: #22c55e;
	--green-600: #16a34a;
	--green-700: #15803d;
	--green-800: #166534;
	--green-900: #14532d;
	--green-950: #052e16;
	--slate-50: #f8fafc;
	--slate-100: #f1f5f9;
	--slate-200: #e2e8f0;
	--slate-300: #cbd5e1;
	--slate-400: #94a3b8;
	--slate-500: #64748b;
	--slate-600: #475569;
	--slate-700: #334155;
	--slate-800: #1e293b;
	--slate-900: #0f172a;
	--white: #ffffff;
	--radius: 12px;
	--radius-sm: 8px;
	--radius-xl: 16px;
	--radius-2xl: 24px;
	--shadow-sm: 0 1px 2px rgba(0,0,0,.05);
	--shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
	--shadow-md: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.04);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--slate-900);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.cpb *, .cpb *::before, .cpb *::after { box-sizing: border-box; }
.cpb img { max-width: 100%; display: block; }
.cpb p { margin: 0; }
.cpb ul { list-style: none; margin: 0; padding: 0; }
.cpb a { color: inherit; text-decoration: none; }

.cpb-w {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ── Header ── */
.cpb-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--slate-200);
}

.cpb-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	gap: 24px;
}

.cpb-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	font-size: .9375rem;
	color: var(--slate-900);
	white-space: nowrap;
}

.cpb-logo__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--green-600);
	color: var(--white);
}

.cpb-nav {
	display: none;
	gap: 8px;
}

@media (min-width: 768px) {
	.cpb-nav { display: flex; }
}

.cpb-nav__link {
	padding: 6px 14px;
	font-size: .875rem;
	font-weight: 500;
	color: var(--slate-600);
	border-radius: var(--radius-sm);
	transition: color .15s, background .15s;
}

.cpb-nav__link:hover {
	color: var(--slate-900);
	background: var(--slate-100);
}

.cpb-header__actions {
	display: none;
	align-items: center;
	gap: 12px;
}

@media (min-width: 768px) {
	.cpb-header__actions { display: flex; }
}

.cpb-header__login {
	font-size: .875rem;
	font-weight: 500;
	color: var(--slate-600);
	transition: color .15s;
}

.cpb-header__login:hover { color: var(--slate-900); }

/* Hamburger */
.cpb-hamburger {
	display: flex;
	flex-direction: column;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
}

.cpb-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--slate-700);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}

@media (min-width: 768px) {
	.cpb-hamburger { display: none; }
}

/* ── Buttons ── */
.cpb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: .875rem;
	font-weight: 600;
	border-radius: var(--radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
	text-decoration: none;
	white-space: nowrap;
	background: var(--green-600);
	color: var(--white);
}

.cpb-btn:hover {
	background: var(--green-700);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

.cpb-btn:focus-visible {
	outline: 2px solid var(--green-500);
	outline-offset: 2px;
}

.cpb-btn--sm {
	padding: 7px 16px;
	font-size: .8125rem;
	border-radius: var(--radius-sm);
}

.cpb-btn--lg {
	padding: 14px 28px;
	font-size: .9375rem;
	border-radius: var(--radius);
}

.cpb-btn--outline {
	background: var(--white);
	color: var(--slate-700);
	border: 1px solid var(--slate-300);
}

.cpb-btn--outline:hover {
	background: var(--slate-50);
	border-color: var(--slate-400);
	transform: translateY(-1px);
	box-shadow: var(--shadow);
}

.cpb-btn--white {
	background: var(--white);
	color: var(--green-800);
}

.cpb-btn--white:hover {
	background: var(--green-50);
	transform: translateY(-1px);
	box-shadow: var(--shadow-lg);
}

/* ── Badge ── */
.cpb-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	font-size: .8125rem;
	font-weight: 600;
	color: var(--green-800);
	background: var(--green-100);
	border: 1px solid var(--green-200);
	border-radius: 999px;
}

/* ── Overline ── */
.cpb-overline {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 12px;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--green-700);
	background: var(--green-100);
	border-radius: 999px;
}

/* ── Hero ── */
.cpb-hero {
	padding: 80px 0 60px;
	text-align: center;
	background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
}

.cpb-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cpb-hero__title {
	margin: 20px 0 0;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -.035em;
	line-height: 1.1;
	color: var(--slate-900);
}

.cpb-hero__accent {
	display: block;
	color: var(--green-600);
	font-style: italic;
}

.cpb-hero__lead {
	margin: 16px 0 0;
	max-width: 600px;
	font-size: 1.0625rem;
	color: var(--slate-500);
	line-height: 1.65;
}

.cpb-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin-top: 28px;
}

/* ── Stats ── */
.cpb-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
	width: 100%;
	max-width: 720px;
	margin-top: 48px;
}

.cpb-stat {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px;
	background: var(--white);
	border: 1px solid var(--slate-200);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-sm);
}

.cpb-stat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--green-100);
	color: var(--green-700);
}

.cpb-stat__val {
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--slate-900);
	line-height: 1.2;
}

.cpb-stat__lbl {
	font-size: .8125rem;
	color: var(--slate-500);
	line-height: 1.3;
}

/* ── Section base ── */
.cpb-section {
	padding: 80px 0;
	text-align: center;
}

.cpb-section__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--slate-900);
}

.cpb-section__sub {
	max-width: 560px;
	margin: 0 auto;
	font-size: 1rem;
	color: var(--slate-500);
}

/* ── Steps ── */
.cpb-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	margin-top: 48px;
	text-align: left;
}

.cpb-step {
	padding: 28px 24px;
	background: var(--white);
	border: 1px solid var(--slate-200);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-sm);
	transition: border-color .15s, box-shadow .15s;
}

.cpb-step:hover {
	border-color: var(--green-200);
	box-shadow: var(--shadow-md);
}

.cpb-step__icon-wrap {
	position: relative;
	display: inline-flex;
	margin-bottom: 20px;
}

.cpb-step__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--green-100);
	color: var(--green-700);
}

.cpb-step__num {
	position: absolute;
	top: -6px;
	right: -8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	font-size: .6875rem;
	font-weight: 700;
	color: var(--white);
	background: var(--green-600);
	border-radius: 50%;
	border: 2px solid var(--white);
}

.cpb-step__title {
	margin: 0 0 8px;
	font-size: 1rem;
	font-weight: 700;
	color: var(--slate-900);
}

.cpb-step__text {
	font-size: .875rem;
	color: var(--slate-500);
	line-height: 1.6;
}

/* ── Highlight (ganhadores) ── */
.cpb-highlight {
	padding: 80px 0 60px;
	text-align: center;
	background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
}

.cpb-highlight__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* ── FAQ ── */
.cpb-section--faq {
	background: var(--white);
	padding-bottom: 80px;
}

.cpb-faq-wrap {
	max-width: 720px;
}

.cpb-faq__intro {
	text-align: center;
	font-size: .9375rem;
	color: var(--slate-500);
	margin-bottom: 32px;
}

.cpb-faq__item {
	border-bottom: 1px solid var(--slate-200);
}

.cpb-faq__item:first-child {
	border-top: 1px solid var(--slate-200);
}

.cpb-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 18px 0;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--font);
	font-size: .9375rem;
	font-weight: 500;
	color: var(--slate-900);
	text-align: left;
	transition: color .15s;
}

.cpb-faq__q:hover { color: var(--green-700); }

.cpb-faq__chevron {
	flex-shrink: 0;
	color: var(--slate-400);
	transition: transform .25s ease;
}

.cpb-faq__item--open .cpb-faq__chevron {
	transform: rotate(180deg);
}

.cpb-faq__a {
	overflow: hidden;
	transition: max-height .3s ease, padding .3s ease;
	max-height: 0;
	padding: 0;
}

.cpb-faq__a[hidden] {
	display: block;
	max-height: 0;
	padding: 0 0 0;
}

.cpb-faq__item--open .cpb-faq__a {
	max-height: 300px;
	padding: 0 0 18px;
}

.cpb-faq__a p {
	font-size: .9375rem;
	color: var(--slate-500);
	line-height: 1.65;
}

/* ── CTA ── */
.cpb-cta {
	padding: 80px 0;
	background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 50%, var(--green-700) 100%);
	text-align: center;
	color: var(--white);
}

.cpb-cta__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cpb-cta__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	font-size: .75rem;
	font-weight: 600;
	background: rgba(255,255,255,.15);
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 999px;
	color: var(--green-200);
	margin-bottom: 24px;
}

.cpb-cta__title {
	margin: 0 0 12px;
	font-size: clamp(1.5rem, 3.5vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.15;
}

.cpb-cta__lead {
	max-width: 560px;
	font-size: 1rem;
	color: rgba(255,255,255,.75);
	line-height: 1.65;
	margin-bottom: 28px;
}

.cpb-cta__fine {
	margin-top: 14px;
	font-size: .75rem;
	color: rgba(255,255,255,.5);
}

/* ── Footer ── */
.cpb-footer {
	padding: 56px 0 0;
	background: var(--slate-50);
	border-top: 1px solid var(--slate-200);
}

.cpb-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr repeat(3, 1fr);
	gap: 40px;
}

@media (max-width: 767px) {
	.cpb-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
}

@media (max-width: 480px) {
	.cpb-footer__grid {
		grid-template-columns: 1fr;
	}
}

.cpb-logo--footer {
	margin-bottom: 12px;
}

.cpb-footer__desc {
	font-size: .8125rem;
	color: var(--slate-500);
	line-height: 1.55;
	max-width: 280px;
}

.cpb-footer__heading {
	font-size: .8125rem;
	font-weight: 700;
	color: var(--slate-900);
	margin-bottom: 14px;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.cpb-footer__col ul {
	display: grid;
	gap: 10px;
}

.cpb-footer__col a {
	font-size: .8125rem;
	color: var(--slate-500);
	transition: color .15s;
}

.cpb-footer__col a:hover { color: var(--green-700); }

.cpb-footer__bottom {
	padding: 24px 0;
	margin-top: 40px;
	border-top: 1px solid var(--slate-200);
	text-align: center;
}

.cpb-footer__bottom p {
	font-size: .75rem;
	color: var(--slate-400);
}

/* ── Mobile nav overlay ── */
.cpb-header.is-open .cpb-nav {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: 64px;
	left: 0;
	right: 0;
	background: var(--white);
	border-bottom: 1px solid var(--slate-200);
	padding: 16px 24px;
	box-shadow: var(--shadow-lg);
	z-index: 99;
}

.cpb-header.is-open .cpb-header__actions {
	display: flex;
	flex-direction: column;
	position: absolute;
	top: calc(64px + var(--cpb-nav-h, 200px));
	left: 0;
	right: 0;
	background: var(--white);
	padding: 0 24px 16px;
	box-shadow: var(--shadow-lg);
	z-index: 98;
}

.cpb-hamburger[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.cpb-hamburger[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}
.cpb-hamburger[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive polish ── */
@media (max-width: 480px) {
	.cpb-hero { padding: 56px 0 40px; }
	.cpb-stats { grid-template-columns: 1fr; max-width: 340px; margin-left: auto; margin-right: auto; }
	.cpb-steps { grid-template-columns: 1fr; }
	.cpb-hero__actions { flex-direction: column; align-items: center; }
	.cpb-btn--lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.cpb-btn:hover { transform: none; }
	.cpb-faq__chevron { transition: none; }
	.cpb-faq__a { transition: none; }
}
