/* ==========================================================================
   Bantubet Guia — design system
   Documentação: docs/DESIGN-SYSTEM.md
   1. Fonte  2. Tokens  3. Base  4. Layout  5. Componentes  6. Secções  7. Utilitários
   ========================================================================== */

/* 1. Fonte (Plus Jakarta Sans, OFL, auto-alojada) */
@font-face {
	font-family: "Plus Jakarta Sans";
	src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}

/* 2. Tokens */
:root {
	/* Marca (derivada da paleta oficial, ajustada para contraste AA) */
	--c-orange-500: #eb6338;
	--c-orange-400: #f47c4f;
	--c-orange-700: #b75238;
	--c-amber-400: #ffb23e;
	--c-amber-500: #ff9b00;
	--c-gold-400: #dec211;

	/* Neutros "noite" */
	--c-night-950: #0b0f1b;
	--c-night-900: #0f1321;
	--c-night-850: #13182a;
	--c-night-800: #1a213a;
	--c-night-700: #202948;
	--c-night-600: #2c375e;
	--c-night-400: #5b678f;
	--c-night-300: #8590b8;
	--c-night-200: #b8c0dc;
	--c-sand-50: #f4f1ea;

	--c-success: #3ccf8e;
	--c-warning: #ffb23e;
	--c-live: #ff5a4d;

	/* Semânticos */
	--bg: var(--c-night-900);
	--bg-alt: var(--c-night-850);
	--surface: var(--c-night-800);
	--surface-2: var(--c-night-700);
	--border: var(--c-night-600);
	--text: var(--c-sand-50);
	--text-muted: var(--c-night-200);
	--text-subtle: var(--c-night-300);
	--accent: var(--c-orange-500);
	--accent-hover: var(--c-orange-400);
	--focus: var(--c-amber-400);
	--grad-accent: linear-gradient(135deg, var(--c-amber-400), var(--c-orange-500));

	/* Tipografia (escala fluida 1.25) */
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1.0625rem;
	--fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
	--fs-h3: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
	--fs-h2: clamp(1.625rem, 1.35rem + 1.2vw, 2.375rem);
	--fs-h1: clamp(2.125rem, 1.6rem + 2.6vw, 3.75rem);
	--lh-tight: 1.12;
	--lh-snug: 1.3;
	--lh-body: 1.65;

	/* Espaçamento (base 4px) */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.5rem;
	--sp-6: 2rem;
	--sp-7: 3rem;
	--sp-8: clamp(3.5rem, 2.5rem + 4vw, 6rem);

	/* Forma */
	--r-sm: 8px;
	--r-md: 15px;
	--r-lg: 20px;
	--r-pill: 999px;
	--shadow-1: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
	--shadow-accent: 0 8px 28px rgb(235 99 56 / 0.35);

	--container: 1200px;
	--container-narrow: 760px;
	--header-h: 72px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 3. Base */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: var(--lh-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4 {
	margin: 0 0 var(--sp-4);
	line-height: var(--lh-tight);
	font-weight: 800;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h3 {
	font-size: var(--fs-h3);
	line-height: var(--lh-snug);
	font-weight: 700;
	letter-spacing: -0.01em;
}

p {
	margin: 0 0 var(--sp-4);
	text-wrap: pretty;
}

a {
	color: var(--c-amber-400);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--c-orange-400);
}

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

code {
	padding: 0.1em 0.4em;
	background: var(--surface-2);
	border-radius: 6px;
	font-size: 0.9em;
}

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

.skip-link {
	position: absolute;
	top: -100px;
	left: var(--sp-4);
	z-index: 100;
	padding: var(--sp-3) var(--sp-4);
	background: var(--c-amber-400);
	color: var(--c-night-900);
	font-weight: 700;
	border-radius: var(--r-sm);
}

.skip-link:focus {
	top: var(--sp-4);
}

/* 4. Layout */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--sp-4));
	margin-inline: auto;
	padding-inline: var(--sp-4);
}

@media (min-width: 768px) {
	.container {
		max-width: calc(var(--container) + 2 * var(--sp-6));
		padding-inline: var(--sp-6);
	}
}

.container--narrow {
	max-width: calc(var(--container-narrow) + 2 * var(--sp-6));
}

.section {
	padding-block: var(--sp-8);
}

.section--alt {
	background: var(--bg-alt);
	border-block: 1px solid rgb(44 55 94 / 0.5);
}

.section--tight {
	padding-block: var(--sp-6);
}

.section__header {
	max-width: 720px;
	margin-bottom: var(--sp-6);
}

.section__title {
	font-size: var(--fs-h2);
}

.section__intro {
	color: var(--text-muted);
	font-size: var(--fs-lg);
}

.section__more {
	margin-top: var(--sp-6);
	text-align: center;
}

.grid {
	display: grid;
	gap: var(--sp-4);
	padding: 0;
	margin: 0;
	list-style: none;
}

@media (min-width: 640px) {
	.grid--3,
	.grid--4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 960px) {
	.grid {
		gap: var(--sp-5);
	}

	.grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* minmax(0, 1fr): impede que conteúdo longo alargue a coluna além do ecrã */
.split,
.hero__inner {
	grid-template-columns: minmax(0, 1fr);
}

.split {
	display: grid;
	gap: var(--sp-6);
	align-items: start;
}

@media (min-width: 960px) {
	.split {
		grid-template-columns: 1.4fr 1fr;
		gap: var(--sp-7);
	}

	.split--reverse .split__main {
		order: 2;
	}
}

.prose {
	max-width: 68ch;
	color: var(--text-muted);
}

.prose strong {
	color: var(--text);
}

/* 5. Componentes */

/* Eyebrow */
.eyebrow {
	margin-bottom: var(--sp-3);
	color: var(--c-amber-400);
	font-size: var(--fs-xs);
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eyebrow--pill {
	display: inline-flex;
	padding: var(--sp-1) var(--sp-3);
	background: rgb(235 99 56 / 0.12);
	border: 1px solid rgb(235 99 56 / 0.35);
	border-radius: var(--r-pill);
	letter-spacing: 0.06em;
}

/* Ícones */
.icon {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	vertical-align: middle;
}

.icon--sm {
	width: 1.1em;
	height: 1.1em;
}

/* Botões — em pílula, como na linguagem da marca */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 48px;
	padding: var(--sp-3) var(--sp-5);
	border: 2px solid transparent;
	border-radius: var(--r-pill);
	font: inherit;
	font-weight: 700;
	font-size: var(--fs-sm);
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}

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

.btn--primary {
	position: relative;
	overflow: hidden;
	background: var(--grad-accent);
	color: var(--c-night-950);
	box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
	color: var(--c-night-950);
	box-shadow: 0 10px 34px rgb(235 99 56 / 0.5);
}

/* Brilho que atravessa o botão principal ao passar o rato */
.btn--primary::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.6s var(--ease);
	pointer-events: none;
}

.btn--primary:hover::after {
	transform: translateX(120%);
}

.btn--ghost {
	background: transparent;
	border-color: var(--border);
	color: var(--text);
}

.btn--ghost:hover {
	border-color: var(--c-amber-400);
	color: var(--text);
}

.btn--dark {
	background: var(--c-night-950);
	color: var(--text);
}

.btn--dark:hover {
	color: var(--c-amber-400);
}

.btn--sm {
	min-height: 40px;
	padding: var(--sp-2) var(--sp-4);
}

.btn--lg {
	min-height: 56px;
	padding: var(--sp-3) var(--sp-6);
	font-size: var(--fs-base);
}

/* Grupo de CTAs: botões + um único rótulo */
.cta-group {
	display: inline-flex;
	flex-direction: column;
	gap: var(--sp-2);
}

.cta-group__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-3);
}

@media (max-width: 479px) {
	.cta-group,
	.cta-group__buttons,
	.cta-group .btn {
		width: 100%;
	}
}

.section__cta {
	margin-top: var(--sp-6);
	text-align: center;
}

.section__cta .cta-group {
	align-items: center;
}

/* Bloco de afiliação: botão + rótulo de publicidade */
.aff {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-1);
}

.aff__note {
	color: var(--text-subtle);
	font-size: 0.75rem;
	letter-spacing: 0.02em;
}

.aff__note a {
	color: inherit;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	font-weight: 700;
	text-decoration: none;
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

.link-arrow .icon {
	transition: transform 0.2s var(--ease);
}

/* Cartões */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: var(--sp-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.card__icon {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: var(--sp-4);
	background: rgb(235 99 56 / 0.12);
	color: var(--c-amber-400);
	border-radius: var(--r-md);
}

.card__title {
	margin-bottom: var(--sp-2);
	font-size: 1.125rem;
}

.card__text {
	margin: 0;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.card--link {
	transition: border-color 0.2s, transform 0.2s var(--ease);
}

.card--link:hover,
.card--link:focus-within {
	border-color: var(--c-orange-500);
	transform: translateY(-2px);
}

.card__link {
	color: var(--text);
	text-decoration: none;
}

/* Toda a área do cartão é clicável sem duplicar ligações */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.card__link:focus-visible {
	outline: none;
}

.card__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.card__arrow {
	margin-top: var(--sp-4);
	color: var(--c-amber-400);
}

/* Painéis e destaques */
.panel,
.callout {
	padding: var(--sp-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.panel--accent {
	background: linear-gradient(180deg, rgb(235 99 56 / 0.1), transparent 60%), var(--surface);
	border-color: rgb(235 99 56 / 0.45);
}

.panel__title,
.callout__title {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-4);
	font-weight: 700;
	color: var(--text);
}

.panel__title .icon,
.callout__title .icon {
	color: var(--c-amber-400);
}

.callout__big {
	margin-bottom: var(--sp-2);
	font-size: var(--fs-h2);
	font-weight: 800;
	letter-spacing: -0.02em;
	background: var(--grad-accent);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	overflow-wrap: anywhere;
}

.callout__text {
	margin: 0;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.checklist {
	display: grid;
	gap: var(--sp-3);
	padding: 0;
	margin: 0;
	list-style: none;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.checklist li {
	display: flex;
	gap: var(--sp-2);
	align-items: baseline;
}

.checklist .icon {
	position: relative;
	top: 0.15em;
	color: var(--c-success);
}

.note {
	margin: var(--sp-4) 0 0;
	color: var(--text-subtle);
	font-size: var(--fs-sm);
}

/* Estados de verificação */
.status {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	padding: 2px var(--sp-3);
	border-radius: var(--r-pill);
	font-size: var(--fs-xs);
	font-weight: 700;
	white-space: nowrap;
}

.status--ok {
	background: rgb(60 207 142 / 0.12);
	color: var(--c-success);
}

.status--pending {
	background: rgb(255 178 62 / 0.12);
	color: var(--c-warning);
}

.badge-age {
	display: inline-grid;
	place-items: center;
	min-width: 2.2em;
	padding: 0 0.35em;
	border: 2px solid currentColor;
	border-radius: var(--r-pill);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.6;
}

/* Breadcrumbs */
.breadcrumbs {
	margin-bottom: var(--sp-4);
	color: var(--text-subtle);
	font-size: var(--fs-xs);
}

.breadcrumbs a {
	color: var(--text-muted);
}

/* 6. Secções e estrutura global */

/* Barra de jogo responsável */
.topbar {
	background: var(--c-night-950);
	color: var(--text-subtle);
	font-size: var(--fs-xs);
}

.topbar__inner {
	display: flex;
	justify-content: flex-end;
	padding-block: var(--sp-2);
}

.topbar p {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	margin: 0;
}

.topbar__age {
	color: var(--c-amber-400);
	font-weight: 600;
}

/* Cabeçalho */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(15 19 33 / 0.86);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.site-header.is-scrolled {
	border-bottom-color: var(--border);
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.25);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	color: var(--text);
	text-decoration: none;
}

.brand:hover {
	color: var(--text);
}

.brand__logo {
	display: block;
	width: auto;
	height: 44px;
}

@media (max-width: 379px) {
	.brand__logo {
		height: 36px;
	}
}

.nav-toggle {
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
	color: var(--text);
	cursor: pointer;
}

.nav-toggle__close,
.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: inline;
}

.site-nav__list {
	display: flex;
	flex-direction: column;
	gap: var(--sp-1);
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-nav__list a {
	display: block;
	padding: var(--sp-3) var(--sp-4);
	border-radius: var(--r-sm);
	color: var(--text-muted);
	font-weight: 600;
	font-size: var(--fs-sm);
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list a[aria-current="page"] {
	color: var(--text);
	background: var(--surface);
}

/* Navegação recolhida (< 1200px): painel por baixo do cabeçalho */
@media (max-width: 1199px) {
	.site-nav {
		position: absolute;
		inset: 100% 0 auto;
		display: none;
		max-height: calc(100dvh - var(--header-h) - 40px);
		overflow-y: auto;
		padding: var(--sp-4);
		background: var(--c-night-900);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-1);
	}

	.site-nav.is-open {
		display: block;
	}

	/* Sem JS, o menu fica sempre acessível */
	.no-js .site-nav {
		position: static;
		display: block;
		flex-basis: 100%;
		order: 4;
	}

	.no-js .nav-toggle {
		display: none;
	}

	.brand {
		margin-right: auto;
	}

	.header-cta {
		order: 2;
	}

	.nav-toggle {
		order: 3;
	}
}

@media (min-width: 1200px) {
	.nav-toggle {
		display: none;
	}

	.site-nav {
		display: flex;
		align-items: center;
		margin-left: auto;
	}

	.site-nav__list {
		flex-direction: row;
	}

	.site-nav__list a {
		padding: var(--sp-2) var(--sp-3);
		white-space: nowrap;
	}
}

/* Botões de afiliado do cabeçalho: sempre visíveis */
.header-cta {
	display: grid;
	grid-template-columns: auto auto;
	gap: var(--sp-1) var(--sp-2);
}

.header-cta .btn {
	white-space: nowrap;
}

/* Telemóvel (< 640px): botões numa segunda linha, a toda a largura */
@media (max-width: 639px) {
	:root {
		--header-h: 136px;
	}

	.site-header__inner {
		flex-wrap: wrap;
		min-height: 0;
		padding-block: var(--sp-3);
		row-gap: var(--sp-3);
	}

	.header-cta {
		order: 5;
		flex-basis: 100%;
		grid-template-columns: 1fr 1fr;
	}

	.header-cta .btn {
		width: 100%;
	}
}

/* Hero */
.hero {
	position: relative;
	overflow: hidden;
	padding-block: var(--sp-7) var(--sp-8);
	background:
		radial-gradient(60% 80% at 85% 10%, rgb(235 99 56 / 0.28), transparent 70%),
		radial-gradient(50% 60% at 0% 100%, rgb(222 194 17 / 0.08), transparent 70%),
		var(--bg);
}

.hero__inner {
	display: grid;
	gap: var(--sp-6);
	align-items: center;
}

@media (min-width: 960px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		gap: var(--sp-7);
	}
}

.hero__title {
	font-size: var(--fs-h1);
	margin-bottom: var(--sp-5);
}

.hero__lead {
	max-width: 60ch;
	color: var(--text-muted);
	font-size: var(--fs-lg);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	padding: 0;
	margin: var(--sp-5) 0 0;
	list-style: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	padding: var(--sp-1) var(--sp-3);
	background: rgb(26 33 58 / 0.8);
	border: 1px solid var(--border);
	border-radius: var(--r-pill);
	font-size: var(--fs-xs);
	font-weight: 700;
}

.chip .icon {
	color: var(--c-success);
}

.hero__cta {
	margin-top: var(--sp-6);
}

.hero__visual {
	position: relative;
	max-width: 520px;
	width: 100%;
	margin-inline: auto;
}

.hero__art {
	max-width: 520px;
	margin-inline: auto;
}

@media (max-width: 959px) {
	.hero__art {
		max-width: 320px;
	}
}

@media (max-width: 639px) {
	.hero__art {
		display: none;
	}
}

.hero-art__pulse {
	animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
	50% {
		opacity: 0.25;
	}
}

/* Cartão de bónus sobre a ilustração */
.promo-card {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--sp-2) var(--sp-3);
	align-items: center;
	padding: var(--sp-4);
	background: linear-gradient(135deg, var(--c-amber-400), var(--c-orange-500));
	border-radius: var(--r-lg);
	color: var(--c-night-950);
	box-shadow: 0 18px 40px rgb(235 99 56 / 0.35);
}

@media (min-width: 640px) {
	.promo-card {
		position: absolute;
		right: 0;
		bottom: 6%;
		max-width: 300px;
		transform: rotate(-2deg);
	}
}

.promo-card__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	background: var(--c-night-950);
	color: var(--c-amber-400);
	border-radius: var(--r-md);
}

.promo-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 800;
	line-height: 1.2;
}

.promo-card__text {
	margin: 0;
	font-size: var(--fs-xs);
	font-weight: 600;
}

.promo-card .btn {
	grid-column: 1 / -1;
}

/* Faixa de promoções (scroll-snap nativo) */
.section--promos {
	padding-block: var(--sp-7);
	--track-pad: max(var(--sp-4), calc((100vw - var(--container)) / 2));
}

@media (min-width: 768px) {
	.section--promos {
		--track-pad: max(var(--sp-6), calc((100vw - var(--container)) / 2));
	}
}

.promos__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-4);
}

.promos__head .section__header {
	margin-bottom: var(--sp-5);
}

.promos__nav {
	display: flex;
	gap: var(--sp-2);
	margin-bottom: var(--sp-5);
}

.promos__nav[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.promos__nav {
		display: none !important;
	}
}

.promos__btn {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 50%;
	color: var(--text);
	cursor: pointer;
	transition: border-color 0.2s, opacity 0.2s;
}

.promos__btn:hover {
	border-color: var(--c-amber-400);
}

.promos__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.icon--flip {
	transform: scaleX(-1);
}

.promos__track {
	display: flex;
	gap: var(--sp-4);
	margin: 0;
	padding: var(--sp-1) var(--track-pad) var(--sp-4);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--track-pad);
	scrollbar-width: thin;
	scrollbar-color: var(--border) transparent;
	list-style: none;
}

.promos__track:focus-visible {
	outline-offset: -3px;
}

.promo-slide {
	position: relative;
	display: flex;
	flex: 0 0 min(84vw, 360px);
	flex-direction: column;
	overflow: hidden;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	scroll-snap-align: start;
	transition: border-color 0.2s, transform 0.2s var(--ease);
}

.promo-slide:hover,
.promo-slide:focus-within {
	border-color: var(--c-orange-500);
	transform: translateY(-3px);
}

.promo-slide__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 415 / 200;
	object-fit: cover;
	background: var(--surface-2);
}

.promo-slide__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: var(--sp-4) var(--sp-5) var(--sp-5);
}

.promo-slide__tag {
	margin-bottom: var(--sp-2);
	padding: 2px var(--sp-2);
	background: rgb(235 99 56 / 0.15);
	border-radius: var(--r-pill);
	color: var(--c-amber-400);
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.promo-slide__title {
	margin-bottom: var(--sp-1);
	font-size: 1.0625rem;
}

.promo-slide__text {
	margin-bottom: var(--sp-4);
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

/* O botão é a única ligação; estende-se ao cartão inteiro */
.promo-slide .promo-slide__cta {
	position: static;
	margin-top: auto;
}

.promo-slide .promo-slide__cta::after {
	display: none;
}

.promo-slide .promo-slide__cta::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.promos__note {
	margin: 0;
	color: var(--text-subtle);
	font-size: 0.75rem;
}

/* Vantagens */
.section--highlights {
	background:
		radial-gradient(50% 60% at 50% 0%, rgb(235 99 56 / 0.1), transparent 70%),
		var(--bg);
}

.card--highlight {
	background: linear-gradient(180deg, var(--surface-2), var(--surface));
	transition: border-color 0.2s, transform 0.2s var(--ease);
}

.card--highlight:hover {
	border-color: rgb(235 99 56 / 0.6);
	transform: translateY(-2px);
}

.card__icon--solid {
	background: var(--grad-accent);
	color: var(--c-night-950);
}

/* Telemóvel: cartões compactos com o ícone à esquerda (menos scroll) */
@media (max-width: 639px) {
	.card--highlight {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		column-gap: var(--sp-4);
		padding: var(--sp-4);
	}

	.card--highlight .card__icon {
		grid-row: span 2;
		margin: 0;
	}
}

/* Bloco de bónus */
.promo {
	display: grid;
	gap: var(--sp-6);
	align-items: center;
}

@media (min-width: 960px) {
	.promo {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
		gap: var(--sp-7);
	}
}

.promo__aside {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--sp-7) var(--sp-5) var(--sp-6);
	background:
		radial-gradient(90% 70% at 100% 0%, rgb(255 178 62 / 0.7), transparent 60%),
		linear-gradient(140deg, var(--c-orange-700), var(--c-orange-500));
	border-radius: var(--r-lg);
	color: var(--c-night-950);
	text-align: center;
	box-shadow: 0 24px 60px rgb(235 99 56 / 0.25);
}

.promo__badge {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: var(--sp-4);
	background: var(--c-night-950);
	color: var(--c-amber-400);
	border-radius: 50%;
}

.promo__badge .icon {
	width: 32px;
	height: 32px;
}

.promo__kicker {
	margin: 0;
	font-size: var(--fs-xs);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.promo__headline {
	margin: var(--sp-1) 0;
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.promo__sub {
	margin-bottom: var(--sp-5);
	font-weight: 600;
}

.promo__aside .aff__note,
.promo__link {
	color: var(--c-night-950);
}

.promo__link {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-1);
	margin-top: var(--sp-4);
	font-weight: 700;
}

.promo__link:hover {
	color: var(--c-night-950);
}

/* Passos */
.steps {
	display: grid;
	gap: var(--sp-4);
	padding: 0;
	margin: 0;
	list-style: none;
	counter-reset: step;
}

@media (min-width: 768px) {
	.steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1100px) {
	.steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

.steps__item {
	position: relative;
	padding: var(--sp-5);
	padding-top: calc(var(--sp-5) + 44px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	color: var(--text-muted);
	font-size: var(--fs-sm);
	counter-increment: step;
}

.steps__item::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: var(--sp-5);
	left: var(--sp-5);
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1;
	background: var(--grad-accent);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.steps__title {
	color: var(--text);
	font-size: 1.125rem;
	margin-bottom: var(--sp-2);
}

.steps__item p:last-child {
	margin: 0;
}

.steps__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2) var(--sp-4);
}

/* Faixa CTA */
.cta-band {
	display: grid;
	gap: var(--sp-5);
	align-items: center;
	padding: var(--sp-6);
	background:
		radial-gradient(80% 140% at 100% 0%, rgb(255 178 62 / 0.55), transparent 60%),
		linear-gradient(120deg, var(--c-orange-700), var(--c-orange-500));
	border-radius: var(--r-lg);
	color: var(--c-night-950);
}

@media (min-width: 768px) {
	.cta-band {
		grid-template-columns: 1fr auto;
		padding: var(--sp-6) var(--sp-7);
	}
}

.cta-band__title {
	font-size: var(--fs-h2);
	margin-bottom: var(--sp-2);
}

.cta-band__text {
	margin: 0;
	font-weight: 500;
}

.cta-band .aff__note {
	color: var(--c-night-950);
}

/* FAQ */
.faq {
	display: grid;
	gap: var(--sp-3);
}

.faq__item {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
}

.faq__item[open] {
	border-color: rgb(235 99 56 / 0.5);
}

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-4) var(--sp-5);
	cursor: pointer;
	list-style: none;
}

.faq__q::-webkit-details-marker {
	display: none;
}

.faq__q h3 {
	margin: 0;
	font-size: var(--fs-base);
}

.faq__q::after {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--c-amber-400);
	border-bottom: 2px solid var(--c-amber-400);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s var(--ease);
}

.faq__item[open] .faq__q::after {
	transform: rotate(-135deg) translateY(-3px);
}

.faq__a {
	padding: 0 var(--sp-5) var(--sp-4);
	color: var(--text-muted);
}

.faq__a p {
	margin: 0;
}

/* Páginas internas */
.entry__header {
	padding-block: var(--sp-7) var(--sp-5);
	background: radial-gradient(60% 120% at 90% 0%, rgb(235 99 56 / 0.12), transparent 70%);
	border-bottom: 1px solid var(--border);
}

.entry__title {
	font-size: clamp(1.875rem, 1.5rem + 1.8vw, 3rem);
}

.entry__meta {
	margin: 0;
	color: var(--text-subtle);
	font-size: var(--fs-sm);
}

.entry__content {
	padding-block: var(--sp-7) var(--sp-8);
	color: var(--text-muted);
}

.entry__content h2 {
	margin-top: var(--sp-7);
	color: var(--text);
	font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
}

.entry__content h3 {
	margin-top: var(--sp-6);
	color: var(--text);
}

.entry__content strong {
	color: var(--text);
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.25em;
}

.entry__content li {
	margin-bottom: var(--sp-2);
}

.entry__content img {
	border-radius: var(--r-md);
}

.entry__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-sm);
}

.entry__content th,
.entry__content td {
	padding: var(--sp-3);
	border: 1px solid var(--border);
	text-align: left;
}

.entry__content .wp-block-table {
	overflow-x: auto;
}

.cta-inline {
	margin-block: var(--sp-6);
	text-align: center;
}

/* Template "Guia comercial" */
.guide-hero {
	padding-block: var(--sp-6) var(--sp-7);
	background:
		radial-gradient(55% 90% at 90% 0%, rgb(235 99 56 / 0.24), transparent 70%),
		var(--bg);
	border-bottom: 1px solid var(--border);
}

.guide-hero__inner {
	display: grid;
	gap: var(--sp-6);
	align-items: center;
}

@media (min-width: 960px) {
	.guide-hero__inner {
		grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
		gap: var(--sp-7);
	}
}

.guide-hero__title {
	font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
}

.guide-hero__lead {
	max-width: 62ch;
	color: var(--text-muted);
	font-size: var(--fs-lg);
}

.guide-hero__cta {
	margin-block: var(--sp-5);
}

.guide-hero .entry__meta {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
}

.guide-hero .entry__meta .icon {
	color: var(--c-success);
}

.promo-card--static {
	position: static;
	max-width: 420px;
	transform: none;
}

/* Variante sem apelo comercial (jogo responsável) */
.promo-card--calm {
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	box-shadow: none;
}

.promo-card--calm .promo-card__icon {
	background: rgb(60 207 142 / 0.15);
	color: var(--c-success);
}

.promo-card--calm .promo-card__text {
	color: var(--text-muted);
}

/* Cartões de vantagens/números dentro dos guias */
.feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: var(--sp-4);
	margin-block: var(--sp-5);
}

.feature-grid > .wp-block-group {
	margin: 0;
	padding: var(--sp-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.entry__content .feature-grid h3 {
	margin: 0 0 var(--sp-2);
	font-size: 1.0625rem;
}

.feature-grid p:last-child {
	margin-bottom: 0;
	color: var(--text-muted);
	font-size: var(--fs-sm);
}

.guide-layout {
	display: grid;
	gap: var(--sp-6);
	padding-block: var(--sp-7) var(--sp-8);
}

@media (min-width: 1024px) {
	.guide-layout {
		grid-template-columns: 280px minmax(0, 1fr);
		gap: var(--sp-8);
	}
}

/* Índice: recolhível no telemóvel, fixo na lateral em ecrãs grandes */
.guide-toc {
	align-self: start;
}

@media (min-width: 1024px) {
	.guide-toc {
		position: sticky;
		top: calc(var(--header-h) + var(--sp-4));
	}
}

.guide-toc__box {
	padding: var(--sp-4) var(--sp-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.guide-toc__title {
	color: var(--text);
	font-size: var(--fs-xs);
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.guide-toc__list {
	display: grid;
	gap: var(--sp-1);
	margin: var(--sp-3) 0 0;
	padding-left: 1.25em;
	color: var(--text-subtle);
	font-size: var(--fs-sm);
}

.guide-toc__list a {
	display: block;
	padding-block: 3px;
	color: var(--text-muted);
	text-decoration: none;
	line-height: 1.35;
}

.guide-toc__list a:hover,
.guide-toc__list a.is-active {
	color: var(--c-amber-400);
}

.guide-toc__cta {
	display: none;
	margin-top: var(--sp-4);
	padding: var(--sp-5);
	background:
		radial-gradient(90% 70% at 100% 0%, rgb(255 178 62 / 0.6), transparent 60%),
		linear-gradient(140deg, var(--c-orange-700), var(--c-orange-500));
	border-radius: var(--r-lg);
	color: var(--c-night-950);
	text-align: center;
}

@media (min-width: 1024px) {
	.guide-toc__cta {
		display: block;
	}
}

.guide-toc__cta-title {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 800;
	line-height: 1.1;
}

.guide-toc__cta-text {
	margin: var(--sp-1) 0 var(--sp-4);
	font-size: var(--fs-xs);
	font-weight: 600;
}

.guide-toc__cta .btn {
	width: 100%;
	background: var(--c-night-950);
	color: var(--text);
	box-shadow: none;
}

.guide-toc__cta .aff__note {
	color: var(--c-night-950);
}

/* Conteúdo dos guias */
.guide-content {
	padding-block: 0;
	min-width: 0;
}

.guide-content > h2:first-child,
.guide-content > .summary-box:first-child {
	margin-top: 0;
}

.summary-box {
	margin-bottom: var(--sp-6);
	padding: var(--sp-5) var(--sp-6);
	background: linear-gradient(135deg, rgb(235 99 56 / 0.14), transparent 70%), var(--surface);
	border: 1px solid rgb(235 99 56 / 0.45);
	border-radius: var(--r-lg);
}

.summary-box__title {
	margin-bottom: var(--sp-3);
	color: var(--text);
	font-size: var(--fs-lg);
}

.summary-box ol {
	margin: 0;
	color: var(--text);
}

.summary-box li::marker {
	color: var(--c-amber-400);
	font-weight: 800;
}

.entry__content .is-style-checks {
	padding: 0;
	list-style: none;
}

.entry__content .is-style-checks li {
	position: relative;
	padding-left: 2rem;
}

.entry__content .is-style-checks li::before {
	content: "";
	position: absolute;
	top: 0.3em;
	left: 0;
	width: 1.25rem;
	height: 1.25rem;
	background: rgb(60 207 142 / 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233ccf8e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
	border-radius: 50%;
}

/* Passos numerados automaticamente */
.guide-content {
	counter-reset: guide-step;
}

/* Cada secção recomeça a numeração */
.guide-content > h2 {
	counter-set: guide-step 0;
}

.guide-step {
	position: relative;
	margin-block: var(--sp-4);
	padding: var(--sp-5) var(--sp-5) var(--sp-5) calc(var(--sp-5) + 52px);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
	counter-increment: guide-step;
}

.guide-step::before {
	content: counter(guide-step);
	position: absolute;
	top: var(--sp-5);
	left: var(--sp-5);
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	background: var(--grad-accent);
	border-radius: 50%;
	color: var(--c-night-950);
	font-weight: 800;
}

.entry__content .guide-step h3 {
	margin-top: 0.35rem;
}

.guide-step > :last-child {
	margin-bottom: 0;
}

@media (max-width: 479px) {
	.guide-step {
		padding: calc(var(--sp-5) + 48px) var(--sp-4) var(--sp-4);
	}

	.guide-step::before {
		left: var(--sp-4);
		top: var(--sp-4);
	}
}

/* Capturas de telemóvel */
.phone-shot {
	max-width: 260px;
	margin: var(--sp-5) auto;
	text-align: center;
}

.phone-shot img {
	padding: 6px;
	background: var(--c-night-950);
	border: 1px solid var(--border);
	border-radius: 26px;
	box-shadow: var(--shadow-1);
}

/* Captura que já traz a moldura do telemóvel */
.phone-frame {
	max-width: 280px;
	margin: var(--sp-5) auto;
	text-align: center;
}

.phone-frame img {
	border-radius: 0;
}

.entry__content figcaption {
	margin-top: var(--sp-2);
	color: var(--text-subtle);
	font-size: var(--fs-xs);
}

/* Caixa de aviso / dica */
.callout {
	margin-block: var(--sp-5);
	padding: var(--sp-4) var(--sp-5);
	background: rgb(255 178 62 / 0.08);
	border: 1px solid rgb(255 178 62 / 0.35);
	border-left-width: 4px;
	border-radius: var(--r-md);
}

.callout > :first-child {
	margin-top: 0;
}

.callout > :last-child {
	margin-bottom: 0;
}

.callout__title {
	color: var(--c-amber-400);
	font-weight: 800;
}

/* Tabelas dos guias */
.guide-content .wp-block-table {
	margin-block: var(--sp-5);
	border: 1px solid var(--border);
	border-radius: var(--r-lg);
}

.guide-content .wp-block-table table {
	min-width: 520px;
}

.guide-content .wp-block-table th,
.guide-content .wp-block-table td {
	border-width: 0 0 1px;
}

.guide-content .wp-block-table thead th {
	background: var(--surface-2);
	color: var(--text);
	font-size: var(--fs-xs);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.guide-content .wp-block-table tbody tr:nth-child(even) {
	background: var(--surface);
}

.guide-content .wp-block-table tbody tr:last-child td {
	border-bottom: 0;
}

.guide-content .wp-block-table td:first-child {
	color: var(--text);
	font-weight: 700;
}

/* Grelha de promoções nos guias ([bantubet_promos]) */
.entry__content .promo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: var(--sp-4);
	margin: var(--sp-5) 0 var(--sp-3);
	padding: 0;
	list-style: none;
}

.promo-grid .promo-slide {
	margin: 0;
}

.promo-grid .promo-slide__title {
	color: var(--text);
	font-weight: 800;
	line-height: 1.25;
}

.guide-content .guide-cards {
	margin-block: var(--sp-5);
}

@media (min-width: 640px) {
	.guide-content .guide-cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

.guide-content .guide-cards .card {
	padding: var(--sp-4);
}

.guide-content .guide-cards .card__title {
	margin-top: 0;
	font-size: 1rem;
}

/* FAQ do Yoast */
.schema-faq {
	display: grid;
	gap: var(--sp-3);
}

.schema-faq-section {
	padding: var(--sp-4) var(--sp-5);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--r-md);
}

.schema-faq-question {
	display: block;
	margin-bottom: var(--sp-2);
	color: var(--text);
	font-size: var(--fs-base);
}

.schema-faq-answer {
	margin: 0;
}

/* Rodapé */
.site-footer {
	padding-block: var(--sp-7) var(--sp-5);
	background: var(--c-night-950);
	border-top: 1px solid var(--border);
	color: var(--text-subtle);
	font-size: var(--fs-sm);
}

.site-footer__grid {
	display: grid;
	gap: var(--sp-6);
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: 2fr 1fr 1fr;
	}
}

.site-footer__about .brand {
	margin-bottom: var(--sp-4);
}

.site-footer__title {
	margin-bottom: var(--sp-3);
	color: var(--text);
	font-size: var(--fs-sm);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.site-footer__list {
	display: grid;
	gap: var(--sp-2);
	padding: 0;
	margin: 0;
	list-style: none;
}

.site-footer__list a {
	color: var(--text-muted);
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--c-amber-400);
	text-decoration: underline;
}

.site-footer__legal {
	margin-top: var(--sp-6);
	padding-top: var(--sp-5);
	border-top: 1px solid var(--border);
	font-size: var(--fs-xs);
}

.site-footer__age {
	display: flex;
	align-items: center;
	gap: var(--sp-2);
	color: var(--c-amber-400);
}

/* 7. Utilitários e preferências do utilizador */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.topbar,
	.site-header,
	.hero__art,
	.cta-band,
	.site-footer__nav {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}
