/* Página inicial: hero, cards de projeto e as miniaturas ilustrativas de cada um. */

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

/* ---------- hero ---------- */

.hero {
	padding: clamp(44px, 8vw, 112px) 0 clamp(44px, 6vw, 80px);
}

.hero-kicker {
	margin: 0 0 22px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
}

.hero-kicker::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1fa855;
	box-shadow: 0 0 0 4px color-mix(in oklab, #1fa855 22%, transparent);
}

.hero h1 {
	margin: 0;
	max-width: 13ch;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(42px, 7.6vw, 92px);
	line-height: 1;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

.hero h1 em {
	font-style: normal;
	color: var(--muted);
}

.hero-sub {
	margin: 28px 0 0;
	max-width: 54ch;
	color: var(--text);
	font-size: clamp(17px, 1.6vw, 19px);
	line-height: 1.6;
}

/* ---------- lista de projetos ---------- */

.list-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--line);
}

.list-head h2 {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.015em;
}

.list-head p {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
}

.projects {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(16px, 2.4vw, 28px);
	counter-reset: project;
}

.card {
	--c: #1a8f4c;
	counter-increment: project;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 26px;
	overflow: hidden;
	transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
	animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.card:nth-child(2) { animation-delay: 0.07s; }
.card:nth-child(3) { animation-delay: 0.14s; }
.card:nth-child(4) { animation-delay: 0.21s; }
.card:nth-child(n+5) { animation-delay: 0.28s; }

.card:hover {
	border-color: color-mix(in oklab, var(--c) 45%, var(--line));
	transform: translateY(-3px);
	box-shadow: 0 24px 48px -32px color-mix(in oklab, var(--c) 60%, transparent);
}

@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}

.tone-green { --c: #1a8f4c; }
.tone-blue { --c: #2563c9; }
.tone-violet { --c: #6d48d7; }
.tone-orange { --c: #d9481c; }
.tone-red { --c: #d02f3f; }
.tone-navy { --c: #24408f; }
.tone-teal { --c: #0d8a78; }

@media (prefers-color-scheme: dark) {
	.tone-green { --c: #46d17f; }
	.tone-blue { --c: #6ba4ff; }
	.tone-violet { --c: #a78bfa; }
	.tone-orange { --c: #ff7a4d; }
	.tone-red { --c: #ff6b78; }
	.tone-navy { --c: #8aa8ff; }
	.tone-teal { --c: #3fd2bb; }
}

/* palco ilustrado no topo do card */

.stage {
	position: relative;
	height: 268px;
	padding: 28px;
	display: grid;
	place-items: center;
	background:
		radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--c) 20%, transparent), transparent 70%),
		color-mix(in oklab, var(--c) 9%, var(--surface));
	border-bottom: 1px solid var(--line);
	overflow: hidden;
}

.stage::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(color-mix(in oklab, var(--c) 30%, transparent) 1px, transparent 1px);
	background-size: 18px 18px;
	mask-image: linear-gradient(to bottom, #000, transparent 85%);
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
	opacity: 0.55;
}

.mock {
	position: relative;
	width: min(100%, 340px);
	background: var(--surface);
	border: 1px solid color-mix(in oklab, var(--c) 22%, var(--line));
	border-radius: 18px;
	padding: 16px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--ink);
	box-shadow: 0 18px 36px -22px color-mix(in oklab, var(--c) 70%, #000);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .mock {
	transform: translateY(-4px) scale(1.015);
}

.mock-label {
	display: block;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--c);
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1;
	padding: 6px 9px;
	border-radius: 999px;
	color: var(--c);
	background: color-mix(in oklab, var(--c) 12%, var(--surface));
	white-space: nowrap;
}

.chip svg {
	width: 12px;
	height: 12px;
}

/* 1 · áudio -> texto */

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

.play {
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--c);
	color: var(--surface);
	display: grid;
	place-items: center;
}

.play svg {
	width: 16px;
	height: 16px;
	margin-left: 2px;
}

.wave {
	flex: 1;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.wave i {
	width: 3px;
	height: calc(var(--h) * 1px);
	border-radius: 2px;
	background: var(--line-strong);
}

.wave i:nth-child(-n+12) {
	background: var(--c);
}

.time {
	font: 600 11px/1 var(--mono);
	color: var(--muted);
}

.transcript {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--line-strong);
}

.transcript p {
	margin: 6px 0 0;
	font-size: 13.5px;
}

/* 2 · contatos em lote */

.mock-contacts {
	padding: 6px 14px 14px;
}

.contact {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 0;
	border-bottom: 1px solid var(--line);
}

.avatar {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	border-radius: 50%;
	background: color-mix(in oklab, var(--c) 16%, var(--surface));
	color: var(--c);
	display: grid;
	place-items: center;
	font-size: 10.5px;
	font-weight: 700;
}

.contact-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.contact-info b {
	font-size: 12.5px;
	font-weight: 600;
}

.contact-info small {
	font: 500 10.5px/1.3 var(--mono);
	color: var(--muted);
}

.saved {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--c);
	color: var(--surface);
	display: grid;
	place-items: center;
}

.saved svg {
	width: 10px;
	height: 10px;
}

.formats {
	display: flex;
	gap: 6px;
	margin-top: 12px;
}

.formats span {
	font: 600 10.5px/1 var(--mono);
	padding: 5px 7px;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--muted);
}

/* 3 · mensagem agendada */

.mock-schedule {
	background: none;
	border: 0;
	padding: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
}

.bubble {
	max-width: 280px;
	padding: 12px 14px;
	border-radius: 18px 18px 4px 18px;
	background: var(--c);
	color: var(--surface);
	font-size: 13.5px;
	box-shadow: 0 18px 36px -22px color-mix(in oklab, var(--c) 80%, #000);
}

.schedule-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px;
}

.schedule-row .chip {
	background: var(--surface);
	border: 1px solid color-mix(in oklab, var(--c) 22%, var(--line));
}

.composer {
	align-self: stretch;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
	padding: 6px 6px 6px 16px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid color-mix(in oklab, var(--c) 22%, var(--line));
	box-shadow: 0 18px 36px -22px color-mix(in oklab, var(--c) 70%, #000);
	color: var(--muted);
	font-size: 12.5px;
}

.composer > span {
	flex: 1;
}

.composer b {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--c);
	color: var(--surface);
	display: grid;
	place-items: center;
}

.composer svg {
	width: 15px;
	height: 15px;
}

/* 4 · números de um anúncio */

.stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.stat span {
	display: block;
	font-size: 10.5px;
	color: var(--muted);
}

.stat b {
	display: block;
	margin-top: 2px;
	font-family: var(--display);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.02em;
	white-space: nowrap;
}

.stat.hl b {
	color: var(--c);
}

.bars {
	height: 52px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed var(--line-strong);
	display: flex;
	align-items: flex-end;
	gap: 6px;
}

.bars i {
	flex: 1;
	height: calc(var(--h) * 1%);
	border-radius: 4px 4px 1px 1px;
	background: color-mix(in oklab, var(--c) 26%, var(--surface));
}

.bars i:last-child {
	background: var(--c);
}

/* 5 · mensagens apagadas e editadas */

.mock-recover {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
}

.msg {
	padding: 10px 12px;
	border-radius: 12px;
	border-left: 3px solid var(--m);
	background: color-mix(in oklab, var(--m) 9%, var(--surface));
}

.msg .mock-label {
	color: var(--m);
}

.msg p {
	margin: 4px 0 0;
	font-size: 13.5px;
}

.msg-deleted { --m: var(--c); }
.msg-edited { --m: #2f6fd6; }

.msg s {
	color: var(--muted);
}

/* 6 · conferência da receita */

.check-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	font-weight: 600;
	font-size: 13px;
}

.check-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
}

.check-status b {
	font: 700 12px/1 var(--mono);
	color: var(--muted);
}

.check-status .chip {
	--ok: #1a8f4c;
	color: var(--ok);
	background: color-mix(in oklab, var(--ok) 14%, var(--surface));
}

@media (prefers-color-scheme: dark) {
	.check-status .chip { --ok: #46d17f; }
}

/* 7 · cotação entre distribuidoras */

.quote-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

.quote-head b {
	font-size: 13px;
}

.quote-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 12.5px;
}

.quote-row b {
	font: 700 13px/1 var(--mono);
}

.quote-row.best {
	background: color-mix(in oklab, var(--c) 12%, var(--surface));
	color: var(--c);
	font-weight: 600;
}

/* texto do card */

.card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 26px 28px 28px;
}

.card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
}

.card-meta .num::before {
	content: counter(project, decimal-leading-zero);
	font-family: var(--mono);
	font-size: 12px;
	color: var(--c);
}

.card-meta .platform {
	margin-left: auto;
	padding: 4px 10px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12px;
	white-space: nowrap;
}

.card-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.app-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 11px;
}

.card h3 {
	margin: 0;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(22px, 2.4vw, 27px);
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.card-body > p {
	margin: 0 0 24px;
	color: var(--text);
	font-size: 16px;
	line-height: 1.6;
}

.card-actions {
	margin-top: auto;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 18px;
}

.soon {
	display: inline-flex;
	align-items: center;
	font: 600 14px/1 var(--body);
	color: var(--muted);
	border: 1px dashed var(--line-strong);
	border-radius: 999px;
	padding: 12px 18px;
}

.text-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 4px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.text-link:hover {
	color: var(--ink);
	text-decoration-color: currentColor;
}

/* ---------- contato ---------- */

.contact-band {
	margin-top: clamp(56px, 8vw, 104px);
	padding: clamp(28px, 4vw, 44px) 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px 32px;
}

.contact-band h2 {
	margin: 0 0 6px;
	font-family: var(--display);
	font-weight: 700;
	font-size: clamp(22px, 2.6vw, 28px);
	letter-spacing: -0.025em;
}

.contact-band p {
	margin: 0;
	color: var(--muted);
}

.contact-band .btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---------- responsivo / movimento ---------- */

@media (max-width: 820px) {
	.projects {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.stage {
		height: 244px;
		padding: 20px;
	}

	.card-body {
		padding: 22px 20px 24px;
	}

	.card-meta .platform,
	.list-head p {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.card,
	.mock {
		animation: none;
		transition: none;
	}

	.card:hover,
	.card:hover .mock {
		transform: none;
	}
}
