/* =============================================================================
   BDA01 · Black das Altcoins · LP m/3 — só a primeira dobra

   Segue o mockup aprovado em 17/09: logo em cima, título grande em caixa alta com a
   última linha amarela, subtítulo em peso normal com o desconto em amarelo, frase
   verde do halving e a caixa de captação com contorno amarelo-limão (ícone do
   WhatsApp, data entre linhas verdes, campos escuros com ícone e botão amarelo que
   não ocupa a largura toda).

   Fonte: Figtree, a mesma do mockup (900 no título, 500 no subtítulo, 700 nos
   rótulos, 800 no resto).

   Tamanhos em px fixo pra ajuste à mão:
     - CELULAR (até 767px): valores do começo do arquivo.
     - TABLET E DESKTOP (768px+): os tamanhos do mockup, que foi desenhado numa tela
       de 1600x900. Em tela menor a coluna inteira encolhe junto pelo "zoom"
       (0.88 = 88% do tamanho), nas faixas perto do fim do arquivo.
   ========================================================================== */

:root {
	--ink: #010803;       /* preto do fundo (é o mesmo preto da foto) */
	--yellow: #f9e03a;    /* amarelo do mockup: última linha do título, desconto e data */
	--box-line: #e2ec4a;  /* contorno amarelo-limão da caixa de captação */
	--green: #37e887;     /* verde do mockup: frase do halving, ícone do WhatsApp, linhas da data */
	--white: #f4f7f6;
	--muted: #7a8990;     /* placeholder e ícone dos campos */
	--font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	background: var(--ink);
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--ink);
	color: #fff;
	font-family: var(--font);
}

/* =============================================================================
   CELULAR (base)
   ========================================================================== */

.hero {
	position: relative;
	isolation: isolate;
	padding: 18px 0 30px;
	text-align: center;
	/* sem foto no celular: degradê verde-escuro, e a pessoa aparece no avatar ao lado da logo */
	background: radial-gradient(ellipse 120% 60% at 50% 0%, #0b2616 0%, #05140b 55%, var(--ink) 100%);
}

.hero__inner {
	margin: 0 auto;
	padding: 0 16px;
}

.hero__col {
	max-width: 420px;
	margin: 0 auto;
}

/* ---------- logo ---------- */

.brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.brand__avatar {
	display: block;
	flex: none;
}

.brand__avatar img {
	display: block;
	width: 56px; /* tamanho do avatar */
	height: 56px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px rgba(55, 232, 135, .55), 0 0 14px rgba(55, 232, 135, .3);
}

.brand__logo {
	display: block;
	width: 160px; /* largura da logo */
	height: auto;
}

/* ---------- textos ---------- */

.headline {
	margin: 14px 0 0;
	font-size: 30px;
	font-weight: 900;
	line-height: 1.04;
	letter-spacing: -.01em;
	color: #fff;
	text-wrap: balance;
}

.headline__hl {
	display: block;
	color: var(--yellow);
}

.sub {
	margin: 10px 0 0;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.32;
	color: #fff;
	text-wrap: balance;
}

.hl {
	font-weight: 800;
	color: var(--yellow);
}

.tagline {
	max-width: 330px;
	margin: 8px auto 0;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: .01em;
	color: var(--green);
	text-wrap: balance;
}

/* ---------- caixa de captação ---------- */

.box {
	margin: 16px 0 0;
	padding: 12px 16px 20px;
	text-align: left;
	background: rgba(1, 9, 4, .9);
	border: 2px solid var(--box-line);
	border-radius: 14px;
	/* brilho do contorno */
	box-shadow: 0 0 5px rgba(226, 236, 74, .45), 0 0 22px rgba(226, 236, 74, .35), inset 0 0 22px rgba(226, 236, 74, .07);
}

.box__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.box__icon {
	flex: none;
	width: 36px; /* ícone do WhatsApp */
	height: 36px;
	color: var(--green);
}

.box__text {
	flex: 1;
	min-width: 0;
	margin: 0;
	text-align: center;
}

.box__call {
	display: block;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	text-wrap: balance;
}

/* data com uma linha verde de cada lado */
.box__date {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 2px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -.02em;
	color: var(--yellow);
	white-space: nowrap;
}

.box__date::before,
.box__date::after {
	content: "";
	flex: 1;
	min-width: 16px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(55, 232, 135, 0) 0%, var(--green) 45%);
}

.box__date::after {
	background: linear-gradient(90deg, var(--green) 55%, rgba(55, 232, 135, 0) 100%);
}

.box__form {
	margin: 0;
}

/* ---------- campos ---------- */

.field {
	margin-top: 12px;
}

.field__label {
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #e6e9e7;
}

.field__control {
	position: relative;
}

.field__control .iti {
	display: block;
	width: 100%;
}

.field__icon {
	position: absolute;
	z-index: 2;
	left: 14px;
	top: 50%;
	width: 20px; /* ícone do envelope */
	height: 20px;
	margin-top: -10px;
	color: var(--muted);
	pointer-events: none;
}

.field__input {
	display: block;
	width: 100%;
	height: 48px; /* altura dos campos */
	margin: 0;
	padding: 0 14px 0 46px; /* 46px à esquerda: espaço do ícone */
	font: 500 16px/1.2 var(--font); /* 16px: abaixo disso o iPhone dá zoom ao tocar */
	color: var(--white);
	caret-color: var(--yellow);
	background-color: #112023;
	border: 1px solid #4b5b5e;
	border-radius: 8px;
	outline: 2px solid rgba(249, 224, 58, 0); /* o anel do efeito de chamada usa o outline */
	outline-offset: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.field__input::placeholder {
	color: var(--muted);
	opacity: 1;
}

@media (hover: hover) {
	.field__input:hover {
		border-color: #6f8083;
	}
}

.field__input:focus {
	border-color: var(--yellow);
	background-color: #152729;
	box-shadow: 0 0 0 3px rgba(249, 224, 58, .25);
}

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--white);
	box-shadow: inset 0 0 0 100px #152729;
	transition: background-color 9999s ease 0s;
}

/* efeito pra chamar o clique no primeiro campo (e-mail): o contorno acende em amarelo e
   um anel se abre pra fora e some. Ciclo de 2.4s com descanso no meio.
   Para no primeiro toque no formulário (.form-touched, no index.html) e não volta. */
.field--attention .field__input {
	animation: fieldCall 2.4s ease-out .8s infinite;
}

.form-touched .field__input,
.field__input:focus,
.field.has-error .field__input {
	animation: none;
}

@keyframes fieldCall {
	0% {
		border-color: #4b5b5e;
		box-shadow: 0 0 0 0 rgba(249, 224, 58, 0);
		outline-color: rgba(249, 224, 58, 0);
		outline-offset: 0;
	}

	10% {
		border-color: var(--yellow);
		box-shadow: 0 0 16px rgba(249, 224, 58, .45);
		outline-color: rgba(249, 224, 58, .8);
		outline-offset: 0;
	}

	45% {
		border-color: rgba(249, 224, 58, .7);
		box-shadow: 0 0 10px rgba(249, 224, 58, .2);
		outline-color: rgba(249, 224, 58, 0);
		outline-offset: 10px;
	}

	70%,
	100% {
		border-color: #4b5b5e;
		box-shadow: 0 0 0 0 rgba(249, 224, 58, 0);
		outline-color: rgba(249, 224, 58, 0);
		outline-offset: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.field--attention .field__input {
		animation: none;
	}
}

.field.has-error .field__input {
	border-color: #ff4d4d;
	box-shadow: 0 0 0 3px rgba(255, 77, 77, .25);
}

.field-error {
	display: none;
	position: absolute;
	z-index: 3;
	right: 0;
	bottom: 0;
	padding: 2px 8px;
	font: 700 10px/1.4 Arial, sans-serif;
	color: #fff;
	background: #dd1b1b;
	border-radius: 4px 0 8px 0;
	pointer-events: none;
	white-space: nowrap;
}

.field-error.show {
	display: block;
}

/* WhatsApp: bandeira + DDI + setinha + divisória, como no mockup.
   O padding-left do campo é gravado pelo scripts.js com a largura desse bloco. */
.field--phone .iti__flag-container {
	padding: 0;
}

.field--phone .iti__selected-flag {
	padding: 0 20px 0 12px;
	background-color: transparent;
	border-radius: 8px 0 0 8px;
	outline: none;
}

.iti--allow-dropdown.iti--separate-dial-code .iti__flag-container:hover .iti__selected-flag {
	background-color: rgba(255, 255, 255, .04);
}

.field--phone .iti__selected-flag::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 27%;
	bottom: 27%;
	width: 1px;
	background: #4e5d63;
}

.field--phone .iti__flag {
	zoom: 1.2; /* bandeira um pouco maior que a do plugin */
	border-radius: 2px;
}

.field--phone .iti__selected-dial-code {
	margin-left: 10px;
	font-size: 16px;
	font-weight: 500;
	color: var(--white);
}

.field--phone .iti__arrow {
	width: 7px;
	height: 7px;
	margin: -4px 0 0 9px;
	border: 0;
	border-right: 2px solid #c9d3d2;
	border-bottom: 2px solid #c9d3d2;
	transform: rotate(45deg);
}

.field--phone .iti__arrow--up {
	margin-top: 4px;
	transform: rotate(-135deg);
}

.iti__country-list {
	z-index: 30;
	max-width: calc(100vw - 32px);
	white-space: normal;
	color: #1b2a22;
}

/* ---------- botão ---------- */

.cta {
	position: relative;
	display: block;
	width: fit-content;
	max-width: 280px; /* no celular o texto quebra em 2 linhas e o botão não ocupa a largura toda */
	margin: 18px auto 0;
	padding: 13px 22px;
	font: 800 16px/1.2 var(--font);
	text-transform: uppercase;
	color: #1f0c00;
	background: linear-gradient(180deg, #ffd12a 0%, #fdd63d 25%, #fbcb22 55%, #f2b90a 85%, #eab400 100%);
	border: 0;
	border-radius: 8px;
	box-shadow: 0 4px 0 #9c7c09, 0 10px 22px rgba(0, 0, 0, .45), 0 0 22px rgba(255, 205, 40, .22); /* 4px de parede */
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: transform .12s ease, box-shadow .12s ease, filter .2s ease;
}

@media (hover: hover) {
	.cta:not(:disabled):hover {
		transform: translateY(-2px);
		filter: brightness(1.05);
		box-shadow: 0 6px 0 #9c7c09, 0 14px 26px rgba(0, 0, 0, .5), 0 0 30px rgba(255, 205, 40, .4);
	}
}

.cta:not(:disabled):active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 #9c7c09, 0 5px 12px rgba(0, 0, 0, .4);
}

.cta:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.cta:disabled {
	color: #1f0c00;
	opacity: 1;
}

.cta__label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.cta__text {
	text-wrap: balance;
}

.cta__arrow {
	flex: none;
	width: 20px;
	height: 20px;
}

.cta.submitting {
	cursor: progress;
}

.cta__busy {
	display: none;
	position: absolute;
	inset: 0;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: inherit;
	background: linear-gradient(180deg, #ffd12a 0%, #fdd63d 25%, #fbcb22 55%, #f2b90a 85%, #eab400 100%);
}

.cta.submitting .cta__busy {
	display: flex;
}

.spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(31, 12, 0, .25);
	border-top-color: #1f0c00;
	border-radius: 50%;
	animation: spin .7s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- celular baixo (iPhone SE, Android de tela curta) ---------- */

@media (max-width: 767px) and (max-height: 700px) {
	.hero {
		padding-top: 10px;
	}

	.brand__avatar img {
		width: 42px;
		height: 42px;
	}

	.brand__logo {
		width: 124px;
	}

	.headline {
		margin-top: 8px;
		font-size: 25px;
	}

	.sub {
		margin-top: 6px;
		font-size: 15px;
	}

	.tagline {
		margin-top: 6px;
	}

	.box {
		margin-top: 10px;
		padding: 10px 14px 14px;
	}

	.field {
		margin-top: 8px;
	}

	.field__label {
		margin-bottom: 4px;
	}

	.field__input {
		height: 44px;
	}

	.cta {
		margin-top: 14px;
		padding: 11px 20px;
	}
}

/* ---------- celular estreito (320–359px) ---------- */

@media (max-width: 359px) {
	.hero__inner {
		padding: 0 12px;
	}

	.headline {
		font-size: 25px;
	}

	.sub {
		font-size: 15px;
	}

	.box {
		padding: 10px 12px 16px;
	}

	.box__icon {
		width: 30px;
		height: 30px;
	}

	.box__call {
		font-size: 12px;
	}

	.box__date {
		font-size: 19px;
	}
}

/* =============================================================================
   TABLET E DESKTOP (768px+) — tamanhos do mockup (tela de 1600x900)
   ========================================================================== */

@media (min-width: 768px) {
	.hero {
		padding: 28px 0;
	}

	.hero__inner {
		padding: 0 24px;
	}

	.hero__col {
		width: 860px; /* largura da coluna do mockup */
		max-width: none;
	}

	.brand__avatar {
		display: none; /* do tablet pra cima a pessoa aparece na foto */
	}

	.brand__logo {
		width: 265px;
	}

	.headline {
		margin-top: 18px;
		font-size: 56px;
		line-height: 1.02;
		letter-spacing: -.02em;
		text-wrap: wrap;
	}

	.sub {
		margin-top: 10px;
		font-size: 34px;
		line-height: 1.12;
		text-wrap: wrap;
	}

	.tagline {
		max-width: none;
		margin-top: 10px;
		font-size: 20px;
		letter-spacing: 0;
	}

	.box {
		width: 750px;
		margin: 14px auto 0;
		padding: 12px 40px 24px;
		border-radius: 18px;
		box-shadow: 0 0 6px rgba(226, 236, 74, .5), 0 0 30px rgba(226, 236, 74, .38), inset 0 0 28px rgba(226, 236, 74, .08);
	}

	.box__head {
		gap: 20px;
	}

	.box__icon {
		width: 48px;
		height: 48px;
	}

	.box__call {
		font-size: 20px;
	}

	.box__date {
		gap: 20px;
		font-size: 27px;
	}

	.field {
		margin-top: 16px;
	}

	.field:first-child {
		margin-top: 14px;
	}

	.field__label {
		font-size: 16px;
	}

	.field__icon {
		left: 16px;
		width: 26px;
		height: 26px;
		margin-top: -13px;
	}

	.field__input {
		height: 52px;
		padding-left: 64px;
		font-size: 18px;
	}

	.field-error {
		padding: 3px 10px;
		font-size: 11px;
	}

	.field--phone .iti__selected-flag {
		padding: 0 24px 0 15px;
	}

	.field--phone .iti__selected-flag::after {
		right: 10px;
	}

	.field--phone .iti__flag {
		zoom: 1.35;
	}

	.field--phone .iti__selected-dial-code {
		margin-left: 14px;
		font-size: 18px;
	}

	.field--phone .iti__arrow {
		margin-left: 12px;
	}

	.cta {
		max-width: none;
		margin-top: 20px;
		padding: 17px 36px;
		font-size: 20px;
	}

	.cta__arrow {
		width: 24px;
		height: 24px;
	}
}

/* ---------- a partir de 901px a foto entra ---------- */

@media (min-width: 901px) {
	.hero {
		display: flex;
		align-items: center;
		min-height: 100vh; /* a foto ocupa a tela toda; o conteúdo fica centralizado na altura */
		background: var(--ink) url(../img/bg-hero.jpg) center top / cover no-repeat;
		background-image: image-set(url(../img/bg-hero.webp) type("image/webp"), url(../img/bg-hero.jpg) type("image/jpeg"));
	}

	/* tablet deitado: texto por cima da pessoa, então a foto fica 60% mais escura */
	.hero::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: rgba(0, 0, 0, .6);
	}

	.hero__inner {
		width: 100%;
	}

	/* sombra leve: o texto fica por cima da fumaça verde */
	.headline,
	.sub,
	.tagline {
		text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
	}
}

/* ---------- desktop: texto à esquerda, foto à direita ---------- */

@media (min-width: 1200px) {
	/* escurece só o lado da fumaça atrás do texto e deixa a pessoa limpa */
	.hero::before {
		background: linear-gradient(90deg, rgba(1, 8, 3, .7) 0%, rgba(1, 8, 3, .5) 40%, rgba(1, 8, 3, 0) 60%);
	}

	.hero__inner {
		max-width: 1600px;
		padding: 0 60px; /* margem da esquerda no mockup */
	}

	.hero__col {
		margin: 0;
	}
}

/* ---------- tamanho da coluna por tela (tablet e desktop) ----------
   O mockup é de 1600x900. Em tela menor a coluna inteira encolhe junto.
   Cada faixa vale se a tela for mais estreita OU mais baixa que o indicado;
   quando mais de uma bate, vale a de baixo (a menor). */

@media (min-width: 768px) and (max-width: 1599px), (min-width: 768px) and (max-height: 899px) {
	.hero__col {
		zoom: .88; /* ex.: notebook 1440x900 */
	}
}

@media (min-width: 768px) and (max-width: 1439px), (min-width: 768px) and (max-height: 779px) {
	.hero__col {
		zoom: .8; /* ex.: 1536x864 com a barra do navegador */
	}
}

@media (min-width: 768px) and (max-width: 1299px), (min-width: 768px) and (max-height: 699px) {
	.hero__col {
		zoom: .74; /* ex.: 1366x768, 1280x720 e tablets */
	}
}

/* =============================================================================
   RODAPÉ (o mesmo da m/1)
   ========================================================================== */

.footer {
	position: relative;
	padding: 26px 20px 34px;
	text-align: center;
	font-size: 12px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .55);
	background: #000;
}

.footer img {
	display: block;
	width: 150px;
	height: auto;
	margin: 0 auto 10px;
	opacity: .9;
}

.footer p {
	max-width: 640px;
	margin: 0 auto;
}

.footer hr {
	max-width: 640px;
	margin: 16px auto;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.footer a {
	color: #fff;
}
