/* ═══════════════════════════════════════════════════════════════
   MAROCI ACADEMY — landing de captação (lp.marociacademy.com.br)

   Desde 2026-12-01: duas seções numa coluna, visual sóbrio.
   1: selo → título → botão → subtítulo → 3 linhas.
   2: depoimentos → frase do Maroci → botão. Depois, aviso de risco.
   O popup do WhatsApp fica no fim do arquivo.

   TIPO  duas fontes: Source Serif 4 nos títulos (dá peso editorial,
         de quem ensina) e Inter no resto (leitura e interface).
   COR   fundo grafite esverdeado, texto claro, um verde só para ação.
   ═══════════════════════════════════════════════════════════════ */

/* ── fontes (auto-hospedadas, subset latino) ───────────────── */
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 200 900;
	font-display: swap;
	src: url('fonts/source-serif-4-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

@font-face {
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('fonts/inter-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}

/* ── tokens ─────────────────────────────────────────────────── */
:root {
	color-scheme: dark;

	--fundo: #0d1110;
	--fundo-2: #131917;
	--superficie: #1a201e;
	--linha: rgba(236, 240, 237, 0.09);
	--linha-forte: rgba(236, 240, 237, 0.16);

	--texto: #ecf0ed;
	--texto-2: #a4aea8;
	--texto-3: #707a75;

	--acao: #25d366; /* verde do WhatsApp: só no que leva ao grupo */
	--acao-forte: #1fbd5a;
	--acao-fraca: rgba(37, 211, 102, 0.14);
	--erro: #ff8a7a;

	--serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

	--r: 10px;
	--r-g: 14px;
}

/* ── base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--fundo);
	color: var(--texto);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input {
	font: inherit;
	color: inherit;
}

a {
	color: inherit;
}

:focus-visible {
	outline: 2px solid var(--acao);
	outline-offset: 3px;
	border-radius: 4px;
}

[hidden] {
	display: none !important;
}

.vhidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

/* ── layout ─────────────────────────────────────────────────── */
.wrap {
	width: 100%;
	padding-left: max(20px, env(safe-area-inset-left, 0px));
	padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.coluna {
	max-width: 560px;
	margin-inline: auto;
}

.unica {
	position: relative;
	overflow: hidden;
	padding-top: calc(22px + env(safe-area-inset-top, 0px));
	padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));

	/* largura da foto do topo: a tela toda no celular, até 680px no
	   computador. A altura é proporcional (a foto é 4:5, inteira, sem
	   corte), então o rosto fica sempre na mesma altura relativa e o
	   texto começa logo abaixo dele em qualquer tela. */
	--capa-w: min(100vw, 680px);
}

/* ── foto de fundo do topo ──────────────────────────────────── */
.capa {
	position: absolute;
	top: 0;
	left: 50%;
	width: var(--capa-w);
	height: calc(var(--capa-w) * 1.25);
	transform: translateX(-50%);
	background: url('media/retrato-fundo.webp') center top / cover no-repeat;
	/* apaga as bordas: embaixo some no fundo; dos lados, só no
	   computador (no celular a foto já ocupa a largura toda) */
	-webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
	mask-image: linear-gradient(to bottom, #000 45%, transparent 98%);
	pointer-events: none;
}

/* escurece de leve o alto e bem mais a parte de baixo, onde fica o
   título, para o texto ler bem por cima da foto */
.capa::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(13, 17, 16, 0.35) 0%,
		rgba(13, 17, 16, 0.05) 22%,
		rgba(13, 17, 16, 0.1) 45%,
		rgba(13, 17, 16, 0.78) 66%,
		var(--fundo) 92%
	);
}

/* com espaço sobrando dos lados, as laterais da foto também somem no
   fundo: duas máscaras (lados e base) que valem ao mesmo tempo */
@media (min-width: 681px) {
	.capa {
		-webkit-mask-image:
			linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%),
			linear-gradient(to bottom, #000 45%, transparent 98%);
		-webkit-mask-composite: source-in;
		mask-image:
			linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%),
			linear-gradient(to bottom, #000 45%, transparent 98%);
		mask-composite: intersect;
	}
}

.unica > .wrap {
	position: relative;
}

/* ── tipografia ─────────────────────────────────────────────── */
h1,
h2 {
	font-family: var(--serif);
	font-weight: 600;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(2rem, 8.4vw, 2.75rem);
	line-height: 1.1;
}

/* a segunda frase do título, mais baixa: lê como uma conversa */
h1 em {
	display: block;
	font-style: normal;
	font-weight: 400;
	color: var(--texto-2);
}

h2 {
	font-size: 1.5rem;
	line-height: 1.2;
}

.marca {
	display: inline-block;
	font-family: var(--serif);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.01em;
	text-decoration: none;
}

.marca span {
	font-weight: 400;
	color: var(--texto-2);
}

/* "Ao vivo · 2x por dia": texto pequeno com um ponto verde parado */
.selo {
	display: flex;
	align-items: center;
	gap: 8px;
	/* começa logo abaixo do queixo da foto (~70% da largura dela) */
	margin-top: calc(var(--capa-w) * 0.7 - 48px);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--texto-2);
}

.selo::before {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--acao);
}

h1 {
	margin-top: 12px;
}

/* o texto que fica por cima da foto ganha uma sombra suave */
.unica .marca,
.selo,
.unica h1 {
	text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.lead {
	margin-top: 16px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--texto-2);
}

/* ── botão ──────────────────────────────────────────────────── */
.btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	border: 0;
	border-radius: var(--r);
	background: var(--acao);
	color: #062012;
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 600;
	padding: 16px 24px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease;
}

.btn:hover {
	background: var(--acao-forte);
}

.btn:active {
	transform: translateY(1px);
}

.btn[aria-busy='true'] {
	opacity: 0.6;
	pointer-events: none;
}

.cta {
	margin-top: 26px;
}

/* primeiro botão: logo abaixo do título, com o subtítulo embaixo */
.cta--topo {
	margin-top: 22px;
}

.cta--topo + .lead {
	margin-top: 18px;
}

.cta-nota {
	margin-top: 10px;
	text-align: center;
	font-size: 0.8125rem;
	color: var(--texto-3);
}

/* ── o que acontece no grupo: três linhas com check ─────────── */
.ve {
	list-style: none;
	padding: 0;
	margin-top: 32px;
	border-top: 1px solid var(--linha);
}

.ve li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--linha);
	font-size: 0.96875rem;
	line-height: 1.5;
}

.ve-icone {
	flex: none;
	margin-top: 2px;
	color: var(--acao);
}

/* ── seção 2 ────────────────────────────────────────────────── */
.bloco--2 {
	margin-top: 56px;
}

/* depoimentos: no celular a fila desliza e o terceiro espia na
   borda; do tablet para cima cabem os três */
.depos-fila {
	margin-top: 16px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(42vw, 180px);
	gap: 10px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	margin-inline: calc(-1 * max(20px, env(safe-area-inset-left, 0px)));
	padding-inline: max(20px, env(safe-area-inset-left, 0px));
	scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px));
	scrollbar-width: none;
}

.depos-fila::-webkit-scrollbar {
	display: none;
}

.depos-fila > * {
	scroll-snap-align: start;
	min-width: 0;
}

@media (min-width: 560px) {
	.depos-fila {
		grid-auto-flow: row;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		overflow: visible;
		margin-inline: 0;
		padding-inline: 0;
	}
}

.depo-caixa {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid var(--linha);
	border-radius: var(--r-g);
	overflow: hidden;
	background: var(--superficie);
	aspect-ratio: 9 / 16;
	cursor: pointer;
}

.depo-caixa video,
.depo-caixa img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.depo-espera {
	position: absolute;
	inset: 0;
	background: var(--superficie);
}

/* faixa escura só no topo, para a duração ter contraste */
.depo-veu {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, transparent 24%);
}

.depo-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #0d1110;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
	transition: transform 0.15s ease;
}

.depo-play svg {
	margin-left: 2px;
}

.depo-caixa:hover .depo-play {
	transform: translate(-50%, -50%) scale(1.06);
}

.depo-dur {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 0.6875rem;
	font-weight: 500;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 5px;
	padding: 2px 6px;
}

/* tocando: sai tudo o que cobre o vídeo */
.depo-caixa[data-tocando='sim'] .depo-veu,
.depo-caixa[data-tocando='sim'] .depo-play,
.depo-caixa[data-tocando='sim'] .depo-dur,
.depo-caixa[data-tocando='sim'] .depo-espera {
	opacity: 0;
	pointer-events: none;
}

/* botão de som: o navegador só deixa tocar com som depois de um toque */
.depo-som {
	position: absolute;
	bottom: 8px;
	right: 8px;
	z-index: 2;
	width: 32px;
	height: 32px;
	display: none;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	cursor: pointer;
}

.depo-caixa[data-tocando='sim'] .depo-som {
	display: grid;
}

.depo-som[data-mudo='nao'] svg path:last-child {
	display: none;
}

/* frase do Maroci, com a foto */
.autor {
	margin-top: 36px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.autor img {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.autor blockquote {
	font-family: var(--serif);
	font-size: 1.125rem;
	line-height: 1.5;
	text-wrap: pretty;
}

.autor cite {
	display: block;
	margin-top: 6px;
	font-style: normal;
	font-size: 0.8125rem;
	color: var(--texto-3);
}

.autor + .cta {
	margin-top: 28px;
}

/* ── rodapé ─────────────────────────────────────────────────── */
.pe {
	margin-top: 48px;
	padding-top: 20px;
	border-top: 1px solid var(--linha);
	display: grid;
	gap: 8px;
	justify-items: center;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--texto-3);
}

.pe nav {
	display: flex;
	gap: 16px;
}

.pe a {
	color: var(--texto-2);
}

/* ── termos e privacidade ───────────────────────────────────── */
.doc {
	padding-top: 24px;
	padding-bottom: 56px;
}

.doc .marca {
	margin-bottom: 36px;
}

.doc-texto h1 {
	font-size: clamp(1.75rem, 7vw, 2.25rem);
}

.doc-texto h2 {
	margin-top: 32px;
	font-size: 1.1875rem;
}

.doc-texto p,
.doc-texto li {
	margin-top: 12px;
	color: var(--texto-2);
	font-size: 0.9375rem;
	line-height: 1.7;
}

.doc-texto ul {
	padding-left: 20px;
}

.doc-texto a {
	color: var(--acao);
}

/* ═══════════════════════════════════════════════════════════════
   POPUP DO WHATSAPP
   ═══════════════════════════════════════════════════════════════ */

/* com o popup aberto, a página por trás não rola */
.pop-aberto,
.pop-aberto body {
	overflow: hidden;
}

.pop {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
	background: rgba(5, 7, 6, 0.75);
	animation: pop-fundo 0.18s ease-out;
}

@media (min-width: 560px) {
	.pop {
		align-items: center;
	}
}

.pop-caixa {
	position: relative;
	width: 100%;
	max-width: 400px;
	padding: 24px 20px 20px;
	border: 1px solid var(--linha-forte);
	border-radius: 16px;
	background: var(--fundo-2);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
	animation: pop-sobe 0.22s ease-out;
}

.pop-fechar {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--texto-2);
	cursor: pointer;
}

.pop-fechar:hover {
	background: var(--superficie);
	color: var(--texto);
}

.pop h2 {
	font-size: 1.375rem;
	padding-right: 36px;
}

.pop-texto {
	margin-top: 6px;
	color: var(--texto-2);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.pop form {
	margin-top: 18px;
}

.pop input {
	display: block;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--linha-forte);
	border-radius: var(--r);
	background: var(--fundo);
	font-size: 1.125rem; /* 16px ou mais: o iPhone não dá zoom no campo */
}

.pop input::placeholder {
	color: var(--texto-3);
}

.pop input:focus {
	outline: none;
	border-color: var(--acao);
	box-shadow: 0 0 0 3px var(--acao-fraca);
}

.pop input[aria-invalid='true'] {
	border-color: var(--erro);
}

.pop-erro {
	min-height: 1.4em;
	margin-top: 6px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--erro);
}

.pop .btn {
	margin-top: 4px;
}

.pop-nota {
	margin-top: 12px;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--texto-3);
}

.pop-nota a {
	color: var(--texto-2);
}

@keyframes pop-fundo {
	from {
		opacity: 0;
	}
}

@keyframes pop-sobe {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}
