/* Home › Inscrição no mailing (faixa verde).
   Mesma faixa de "Trabalhe na Leto", que é o padrão do tema para
   chamada-com-formulário: fundo lima, texto em tinta, campos brancos. */

.home-mailing {
	background: var(--leto-green);
	padding-block: clamp(3rem, 2rem + 3vw, 72px);
	margin: clamp(20px, 2.4vw, 40px);
}

.home-mailing__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
}

.home-mailing__title {
	max-width: 620px;
	font-size: clamp(1.45rem, 1rem + 1.6vw, 30px);
	font-weight: 500;
	line-height: 1.12;
	color: var(--leto-ink);
	text-wrap: balance;
}

.home-mailing__text {
	max-width: 56ch;
	font-size: 15px;
	line-height: 1.45;
	color: var(--leto-ink);
	opacity: .8;
}

/* ---------- formulário ---------- */

.home-mailing__form {
	width: 100%;
	max-width: 720px;
	margin-top: clamp(.75rem, 1.5vw, 20px);
}

.home-mailing__campos {
	display: flex;
	gap: 12px;
	width: 100%;
}
.home-mailing__campo { flex: 1; min-width: 0; display: block; }

.home-mailing__input {
	width: 100%;
	height: 58px;
	padding: 0 24px;
	border: 1px solid transparent;
	border-radius: 100px;
	background: #fff;
	font: inherit;
	font-size: 14.4px;
	color: var(--leto-ink);
	transition: border-color .2s var(--ease, ease);
}
.home-mailing__input::placeholder { color: rgba(45,45,45,.5); }
.home-mailing__input:focus { outline: 0; border-color: var(--leto-ink); }

.home-mailing__btn {
	flex: none;
	height: 58px;
	padding-inline: 34px;
	border: 0;
	cursor: pointer;
}

/* O consentimento é caixa de verdade, não texto: o cadastro em lista precisa de
   ato afirmativo. Alinha pelo topo para o quadrado não descer com o texto que quebra. */
.home-mailing__optin {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	max-width: 60ch;
	margin: 1rem auto 0;
	text-align: left;
	font-size: 12.6px;
	line-height: 1.4;
	color: var(--leto-ink);
	cursor: pointer;
}
.home-mailing__optin input {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: .12em;
	accent-color: var(--leto-charcoal);
	cursor: pointer;
}

/* ---------- retorno ---------- */

.home-mailing__flash {
	width: 100%;
	max-width: 720px;
	margin: 0;
	padding: 14px 22px;
	border-radius: 12px;
	border-left: 4px solid;
	background: #fff;
	font-size: 14.4px;
	line-height: 1.4;
	text-align: left;
	color: var(--leto-ink);
}
.home-mailing__flash--ok  { border-left-color: #2c7a4b; }
.home-mailing__flash--err { border-left-color: #a23030; }

@media (max-width: 620px) {
	.home-mailing__campos { flex-direction: column; }
	.home-mailing__btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.home-mailing__input { transition: none; }
}
