/* =========================================================
   TOTEM — Home
   Azul elétrico é a cor principal. Lime é acento pontual.
   ========================================================= */

/* A June Expt Variable vem do Adobe Fonts (ver Definições Totem > Tipografia),
   com o nome de família "june-expt-variable". O @font-face abaixo só entra em
   ação se algum dia o ficheiro for auto-alojado em assets/fonts/. */
@font-face {
	font-family: 'June Expt Variable';
	src: url('../fonts/JuneExpt-Variable.woff2') format('woff2-variations');
	font-weight: 100 900;
	font-display: swap;
}

:root {
	--blue: #3a39ff;
	--blue-deep: #2423cc;
	--blue-soft: #ecedff;
	--lime: #dcf343;
	--linen: #f6f6ec;
	--charcoal: #0a0a12;
	--light-gray: #edf1f6;
	--sky: #acc4ff;

	--font-display: 'june-expt-variable', 'June Expt Variable', 'DM Sans', system-ui, sans-serif;
	--font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

	--gutter: 100px;
	--max: 1440px;
	--radius: 24px;
	--radius-pill: 100px;
	--header-h: 84px;

	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	/* curva simétrica e mais lenta, para hovers que devem parecer suaves */
	--ease-soft: cubic-bezier(0.45, 0.05, 0.25, 1);
}

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

/* Nada de overflow em html/body: qualquer valor diferente de visible quebra
   o position:sticky da secção CTA. Cada secção recorta o seu próprio conteúdo. */
html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
	color: var(--charcoal);
	background: var(--linen);
	-webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button {
	background: none; border: 0; border-radius: 0; padding: 0;
	width: auto; text-align: inherit; white-space: normal;
	-webkit-appearance: none; appearance: none; cursor: pointer;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

/* ---------- Tipografia ---------- */
.t-h2 {
	font-family: var(--font-display);
	font-size: clamp(30px, 3.4vw, 46px);
	line-height: 1.14;
	letter-spacing: -0.015em;
}
.t-eyebrow {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--blue);
}
.t-eyebrow--light { color: var(--lime); }
[data-theme="blue"] .t-eyebrow { color: var(--lime); }

.t-lead {
	font-size: clamp(16px, 1.35vw, 19px);
	line-height: 1.55;
	opacity: .82;
}
.t-lead--accent { opacity: 1; font-weight: 600; }
.t-blue { color: var(--blue); }
.t-center { text-align: center; }

/* ---------- Layout ---------- */
.t-container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section[data-section] { position: relative; padding: 120px 0; }
section[data-section]:not(.t-cta) { overflow: hidden; }
section[data-theme="blue"] { background: var(--blue); color: var(--linen); }

/* ---------- Botões ---------- */
.t-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--radius-pill);
	font-size: 16px;
	line-height: 1.1;
	letter-spacing: -0.015em;
	font-weight: 500;
	white-space: nowrap;
	max-width: 100%;
	text-align: center;
	transition: transform .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.t-btn:hover { transform: translateY(-2px); }
.t-btn--lg { padding: 16px 32px; font-size: 17px; }

.t-btn--blue { background: var(--blue); color: #fff; }
.t-btn--blue:hover { background: var(--blue-deep); }
.t-btn--lime { background: var(--lime); color: var(--charcoal); }
.t-btn--lime:hover { background: #e7ff56; }
.t-btn--white { background: var(--linen); color: var(--charcoal); }
.t-btn--lime-w { background: var(--lime); color: var(--charcoal); }
.t-btn--lime-w:hover { background: #e7ff56; }
.t-btn--outline { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.t-btn--outline:hover { background: #fff; color: var(--charcoal); border-color: #fff; }
.t-btn--outline-dark { background: transparent; color: var(--charcoal); border-color: rgba(10,10,18,.3); }
.t-btn--outline-dark:hover { background: var(--charcoal); color: #fff; border-color: var(--charcoal); }

/* =========================================================
   Header
   ========================================================= */
.t-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	padding: 22px 50px;
	transition: transform .5s var(--ease), background-color .4s var(--ease), padding .4s var(--ease);
}
.t-header::before {
	content: '';
	position: absolute; inset: 0;
	background: rgba(246,246,236,.85);
	backdrop-filter: blur(16px);
	opacity: 0;
	transition: opacity .4s var(--ease);
	pointer-events: none;
}
.t-header.is-solid { padding: 14px 50px; }
.t-header.is-solid::before { opacity: 1; }
.t-header.is-hidden { transform: translateY(-115%); }

.t-header__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	max-width: calc(var(--max) - 100px);
	margin: 0 auto;
}
/* Logo azul no header sólido; branco sobre o vídeo do hero, onde o azul
   não tem contraste suficiente. Para forçar azul sempre, apagar a 1ª regra. */
.t-header__logo svg { width: 130px; height: auto; }
.t-header__logo svg path { fill: #fff; transition: fill .4s var(--ease); }
.t-header.is-solid .t-header__logo svg path { fill: var(--blue); }

.t-header__toggle { color: #fff; }
.t-header.is-solid .t-header__actions > .t-header__toggle { color: var(--blue); }

.t-header__actions { display: flex; align-items: center; gap: 16px; }

.t-header__actions > .t-header__toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 22px; height: 22px;
	transition: color .4s var(--ease);
}
.t-header__toggle span {
	display: block; width: 100%; height: 2px;
	background: currentColor; border-radius: 2px;
	transition: transform .4s var(--ease);
}
.t-header__toggle[aria-expanded="true"] { color: var(--linen); }
.t-header__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.t-header__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Menu — painel lateral direito */
.t-menu { position: fixed; inset: 0; z-index: 120; }
.t-menu[hidden] { display: none; }

.t-menu__scrim { position: absolute; inset: 0; background: rgba(10,10,18,.55); opacity: 0; }

.t-menu__panel {
	position: absolute;
	top: 0; right: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	width: min(438px, 92vw);
	height: 100%;
	padding: 50px 36px;
	background: var(--charcoal);
	border-radius: 30px 0 0 30px;
	overflow: hidden;
	transform: translateX(100%);
}

.t-menu__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.t-menu__close {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--lime);
	font-size: 16px;
	letter-spacing: -0.02em;
	transition: opacity .25s;
}
.t-menu__close:hover { opacity: .7; }

.t-menu__nav { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

/* Figma "Item Text": Default = só o texto, encostado à direita.
   Hover = texto lime empurrado para a esquerda e o ícone entra no espaço
   aberto, desrotacionando de 45° para 0°. O ícone fica no fluxo (não é
   absoluto) para nunca poder cair fora do painel. As transições estão na
   regra base, por isso a saída é igual à entrada. */
.t-menu__item {
	display: flex;
	align-items: center;
	color: var(--linen);
	font-family: var(--font-display);
	font-size: 31px;
	line-height: 43px;
	transition: color .5s var(--ease-soft);
}
.t-menu__label { display: block; }

.t-menu__mark {
	display: block;
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	margin-left: 10px;
	margin-right: -38px;
	color: var(--lime);
	opacity: 0;
	transform: translateX(22px) rotate(45deg);
	transition:
		margin-right .7s var(--ease-soft),
		opacity .5s var(--ease-soft),
		transform .7s var(--ease-soft);
}
.t-menu__mark svg { display: block; width: 28px; height: 28px; }

.t-menu__item:hover,
.t-menu__item:focus-visible { color: var(--lime); }
.t-menu__item:hover .t-menu__mark,
.t-menu__item:focus-visible .t-menu__mark {
	margin-right: 0;
	opacity: 1;
	transform: translateX(0) rotate(0deg);
}

.t-menu__foot { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; text-align: right; }
.t-menu__logo svg { width: 130px; height: auto; }
.t-menu__logo svg path { fill: var(--linen); }
.t-menu__foot a {
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: -0.03em;
	color: var(--lime);
	transition: opacity .25s;
}
.t-menu__foot a:hover { opacity: .72; }

/* =========================================================
   1. Hero — vídeo com som opcional
   ========================================================= */
.t-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 100svh;
	padding: 0 0 110px !important;
	overflow: hidden;
	color: #fff;
	background: var(--charcoal);
}
.t-hero__bg { position: absolute; inset: -8% 0; z-index: 0; }
.t-hero__video, .t-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.t-hero__scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(10,10,18,.55) 0%, rgba(10,10,18,.05) 30%, rgba(10,10,18,.62) 74%, rgba(10,10,18,.88) 100%),
		linear-gradient(90deg, rgba(10,10,18,.5) 0%, rgba(10,10,18,0) 58%);
}

.t-hero__ui { position: relative; z-index: 2; width: 100%; }
.t-hero__content {
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 50px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	max-width: min(var(--max), 100%);
}
.t-hero__title {
	font-family: var(--font-display);
	font-size: clamp(46px, 7vw, 96px);
	line-height: .98;
	letter-spacing: -0.025em;
	max-width: 12ch;
}
.t-hero__lead {
	font-size: clamp(16px, 1.4vw, 18px);
	line-height: 1.55;
	max-width: 46ch;
	opacity: .82;
	font-weight: 400;
}
.t-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 14px; }

/* Botão de som */
.t-hero__sound {
	position: absolute;
	right: 50px; bottom: 50px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px 12px 16px;
	border-radius: var(--radius-pill);
	border: 1px solid rgba(255,255,255,.35);
	background: rgba(10,10,18,.35);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 14px;
	transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.t-hero__sound:hover { background: var(--lime); color: var(--charcoal); border-color: var(--lime); }
.t-hero__sound-icon { position: relative; width: 20px; height: 20px; }
.t-hero__sound-icon svg { position: absolute; inset: 0; transition: opacity .25s; }
.t-hero__sound .is-on { opacity: 0; }
.t-hero__sound[aria-pressed="true"] .is-off { opacity: 0; }
.t-hero__sound[aria-pressed="true"] .is-on { opacity: 1; }

.t-hero__scroll {
	position: absolute;
	left: 50%; bottom: 46px;
	z-index: 3;
	transform: translateX(-50%);
	width: 26px; height: 42px;
	border: 1.5px solid rgba(255,255,255,.55);
	border-radius: 14px;
}
.t-hero__scroll span {
	position: absolute;
	left: 50%; top: 9px;
	width: 4px; height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: #fff;
	animation: t-scroll 1.9s var(--ease) infinite;
}
@keyframes t-scroll {
	0% { transform: translateY(0); opacity: 0; }
	25% { opacity: 1; }
	75% { transform: translateY(16px); opacity: 1; }
	100% { transform: translateY(16px); opacity: 0; }
}

/* Modo cinema: só o header fica visível */
.t-hero.is-cinema .t-hero__scrim { opacity: .35; }

/* =========================================================
   2. Problema — altura de tela, reveal com snap
   ========================================================= */
.t-problema {
	display: flex;
	align-items: stretch;
	min-height: 100svh;
}
.t-problema .t-container { display: flex; align-items: stretch; width: 100%; }
.t-problema__grid {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 64px;
	width: 100%;
	padding: 40px 0;
}
.t-problema__main { display: flex; flex-direction: column; gap: 20px; max-width: 780px; }
.t-problema__main .t-h2 { font-size: clamp(34px, 4.6vw, 62px); }
.t-problema__text { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.t-problema__text .t-lead { font-size: clamp(17px, 1.6vw, 22px); }

.t-problema__stats {
	display: flex;
	gap: 56px;
	align-self: flex-end;
	max-width: 620px;
	text-align: right;
}
.t-stat { flex: 1; padding-top: 22px; border-top: 1px solid rgba(246,246,236,.3); }
.t-stat__value {
	font-family: var(--font-display);
	font-size: clamp(44px, 4.8vw, 68px);
	line-height: 1;
	color: var(--lime);
}
.t-stat__suffix { font-family: inherit; }
.t-stat__label { margin-top: 10px; font-size: 15px; line-height: 1.45; opacity: .78; }

.t-problema__glow {
	position: absolute;
	right: -10%; bottom: -45%;
	width: min(900px, 150vw); height: min(900px, 150vw);
	background: radial-gradient(circle, rgba(220,243,67,.2) 0%, rgba(220,243,67,0) 65%);
	pointer-events: none;
}

/* =========================================================
   3. Solução — fundo fixo, só o texto rola
   ========================================================= */
.t-solucao {
	position: relative;
	padding: 0 !important;
	background: var(--charcoal);
	color: var(--linen);
}
.t-solucao__bg { position: absolute; inset: 0; overflow: hidden; }
.t-solucao__bg img { width: 100%; height: 100%; object-fit: cover; }
.t-solucao__scrim {
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(6,6,10,.55) 0%, rgba(6,6,10,.72) 45%, rgba(6,6,10,.88) 100%),
		linear-gradient(90deg, rgba(6,6,10,.7) 0%, rgba(6,6,10,.2) 70%);
}

.t-solucao__track { position: relative; z-index: 2; }
.t-solucao__steps {
	display: flex;
	flex-direction: column;
	gap: 26px;
	max-width: 780px;
	min-height: 100svh;
	padding: 160px 0;
	justify-content: center;
}
.t-solucao__steps .t-h2 { font-size: clamp(32px, 4.2vw, 56px); }
.t-solucao__steps .t-lead { font-size: clamp(17px, 1.6vw, 21px); }

/* =========================================================
   4. Processo — lista horizontal sobre mesh gradient
   ========================================================= */
.t-mesh { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.t-mesh__video, .t-mesh img { width: 100%; height: 100%; object-fit: cover; }
.t-mesh__grain {
	position: absolute; inset: 0;
	opacity: .35;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.t-processo { color: var(--charcoal); }
.t-processo .t-container { position: relative; z-index: 2; }

.t-processo__split {
	display: grid;
	grid-template-columns: minmax(0, 470px) minmax(0, 606px);
	gap: 128px;
	justify-content: space-between;
	align-items: stretch;
}
.t-processo__aside {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 48px;
}
.t-processo__aside .t-eyebrow { margin-bottom: 14px; color: var(--blue); }
.t-processo__aside .t-btn { align-self: flex-start; }

.t-processo__cards { display: flex; flex-direction: column; gap: 24px; }

.t-pcard {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	min-height: 129px;
	padding: 32px;
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--linen);
	isolation: isolate;
}
.t-pcard__bg {
	position: absolute; inset: 0; z-index: -2;
	background-size: cover;
	transform: scale(1.06);
	transition: transform .9s var(--ease);
}
.t-pcard::after {
	content: '';
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(100deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.42) 100%);
	transition: background .5s var(--ease);
}
.t-pcard:hover .t-pcard__bg { transform: scale(1.14); }
.t-pcard:hover::after { background: linear-gradient(100deg, rgba(58,57,255,.8) 0%, rgba(0,0,0,.45) 100%); }

.t-pcard__icon { flex: 0 0 32px; width: 32px; }
.t-pcard__icon svg { width: 32px; height: auto; }
.t-pcard__icon svg path { fill: var(--lime); }
.t-pcard__body { display: flex; flex-direction: column; gap: 8px; }
.t-pcard__title { font-family: var(--font-display); font-size: 25px; line-height: 35px; }
.t-pcard__text { font-size: 16px; line-height: 22px; opacity: .82; }
.t-pcard__step {
	position: absolute;
	top: 22px; right: 28px;
	font-family: var(--font-display);
	font-size: 14px;
	letter-spacing: .12em;
	opacity: .5;
}

/* =========================================================
   5. Portfólio — 3 cards lado a lado
   ========================================================= */
.t-portfolio { background: var(--linen); }
.t-portfolio__head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; margin-bottom: 56px; }

.t-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 56px;
}
.t-pfcard {
	position: relative;
	display: block;
	aspect-ratio: 4 / 5;
	border-radius: var(--radius);
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}
.t-pfcard__media { position: absolute; inset: 0; z-index: -2; }
.t-pfcard__media img, .t-pfcard__media video {
	width: 100%; height: 100%;
	object-fit: cover;
	transform: scale(1.03);
	transition: transform 1s var(--ease);
}
.t-pfcard:hover .t-pfcard__media img,
.t-pfcard:hover .t-pfcard__media video { transform: scale(1.1); }
.t-pfcard__scrim {
	position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(180deg, rgba(10,10,18,.3) 0%, rgba(10,10,18,0) 35%, rgba(10,10,18,.85) 100%);
}
.t-pfcard__top { position: absolute; top: 24px; left: 24px; }
.t-pfcard__tag {
	display: inline-block;
	padding: 7px 15px;
	border-radius: var(--radius-pill);
	background: rgba(255,255,255,.18);
	backdrop-filter: blur(8px);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
}
.t-pfcard__bottom {
	position: absolute;
	left: 24px; right: 24px; bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.t-pfcard__title { font-family: var(--font-display); font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.t-pfcard__text { font-size: 17px; line-height: 1.5; opacity: .88; }
.t-pfcard__cta {
	align-self: flex-start;
	margin-top: 14px;
	padding: 14px 26px;
	font-size: 16px;
	font-weight: 600;
}
.t-pfcard__cta svg { transition: transform .35s var(--ease); }
.t-pfcard:hover .t-pfcard__cta svg { transform: translate(3px, -3px); }

/* =========================================================
   6. Serviços — 3 cards sobre mesh gradient
   ========================================================= */
.t-servicos { color: var(--charcoal); overflow: hidden; }
.t-servicos .t-container { position: relative; z-index: 2; }
.t-servicos__head {
	display: flex; flex-direction: column; gap: 16px;
	align-items: center; text-align: center;
	max-width: 860px; margin: 0 auto 56px;
}
.t-servicos .t-eyebrow { color: var(--blue); }

.t-servicos__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.t-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 36px 32px;
	border-radius: var(--radius);
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(255,255,255,.9);
	backdrop-filter: blur(16px);
	transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.t-plan:hover { transform: translateY(-6px); }
.t-plan.is-featured {
	background: var(--blue);
	color: #fff;
	border-color: var(--blue);
	box-shadow: 0 28px 70px rgba(58,57,255,.32);
}
.t-plan__badge {
	position: absolute; top: -13px; left: 32px;
	padding: 6px 15px;
	border-radius: var(--radius-pill);
	background: var(--lime);
	color: var(--charcoal);
	font-size: 12.5px; font-weight: 600;
	letter-spacing: .02em;
}
.t-plan__head { display: flex; flex-direction: column; gap: 10px; }
.t-plan__name { font-family: var(--font-display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.t-plan__desc { font-size: 15px; line-height: 1.5; opacity: .75; }
.t-plan__list { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.t-plan__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.5; }
.t-plan__list svg { flex: 0 0 14px; margin-top: 5px; color: var(--blue); }
.t-plan.is-featured .t-plan__list svg { color: var(--lime); }
.t-plan__foot { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.t-plan__price { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.t-plan__price span { font-weight: 400; opacity: .6; font-size: 14px; }
.t-plan.is-featured .t-btn--blue { background: var(--lime); color: var(--charcoal); }
.t-plan.is-featured .t-btn--blue:hover { background: #fff; }

/* =========================================================
   7. FAQ
   ========================================================= */
.t-faq { background: var(--blue-soft); }
.t-split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 100px; }
.t-split__left { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.t-split__left .t-btn { margin-top: 12px; }
.t-faq__list { display: flex; flex-direction: column; gap: 12px; }

.t-acc {
	border-radius: var(--radius);
	background: #fff;
	overflow: hidden;
	transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.t-acc.is-open { background: var(--blue); color: #fff; box-shadow: 0 20px 44px rgba(58,57,255,.22); }
.t-acc > .t-acc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 26px 32px;
	text-align: left;
}
.t-acc__q { font-family: var(--font-display); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.3; }
.t-acc__icon { position: relative; flex: 0 0 20px; width: 20px; height: 20px; }
.t-acc__icon::before, .t-acc__icon::after {
	content: '';
	position: absolute; top: 50%; left: 50%;
	width: 16px; height: 2px;
	background: currentColor;
	transform: translate(-50%, -50%);
	transition: transform .4s var(--ease);
}
.t-acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.t-acc.is-open .t-acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.t-acc__panel { height: 0; overflow: hidden; }
.t-acc__inner { padding: 0 32px 26px; max-width: 92%; opacity: .85; line-height: 1.55; }

/* =========================================================
   8. CTA final — animação atrelada ao scroll
   ========================================================= */
.t-cta { padding: 0 !important; background: var(--blue-soft); }
.t-cta__viewport { position: relative; height: 300svh; }
.t-cta__stage {
	position: sticky;
	top: 0;
	height: 100svh;
	display: grid;
	place-items: center;
}
.t-cta__frame {
	position: relative;
	display: grid;
	place-items: center;
	--cta-w: 68%;
	--cta-h: 58svh;
	width: var(--cta-w);
	height: var(--cta-h);
	border-radius: 28px;
	overflow: hidden;
	will-change: width, height;
}
.t-cta__bg { position: absolute; inset: 0; overflow: hidden; }
.t-cta__bg img, .t-cta__bg video { width: 100%; height: 100%; object-fit: cover; }
.t-cta__scrim { position: absolute; inset: 0; background: rgba(10,10,18,.62); }

.t-cta__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	padding: 40px;
	text-align: center;
	color: #fff;
}

/* Sem gap: cada bloco controla a própria margem, para poder colapsar
   por completo e o que fica visível ficar sempre centrado. */
.t-cta__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	overflow: hidden;
	margin-bottom: 26px;
}
.t-cta__title {
	font-family: var(--font-display);
	font-size: clamp(30px, 4.2vw, 56px);
	line-height: 1.12;
	letter-spacing: -0.02em;
	max-width: 16ch;
}
.t-cta__lead { font-size: clamp(16px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.02em; opacity: .9; }
.t-cta__btn { flex: 0 0 auto; }

.t-cta__mark {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	overflow: hidden;
	margin-top: 0;
	height: 0;
	opacity: 0;
}
.t-cta__mark-icon { display: block; width: clamp(190px, 21vw, 300px); }
.t-cta__mark-icon svg { width: 100%; height: auto; }
.t-cta__mark-icon svg path { fill: var(--lime); }
.t-cta__mark-text {
	font-family: var(--font-display);
	font-size: clamp(15px, 1.3vw, 19px);
	letter-spacing: .16em;
	color: var(--linen);
}

/* =========================================================
   9. Footer — só contactos, redes, créditos e legais
   ========================================================= */
.t-footer {
	position: relative;
	z-index: 3;
	padding: 50px 0 0;
	background: var(--blue);
	color: var(--linen);
	border-radius: 48px 48px 0 0;
}
/* O footer sobrepõe sempre a secção anterior com os cantos arredondados. */
.t-footer { margin-top: -56px; }

.t-footer__inner {
	display: flex;
	justify-content: space-between;
	gap: 60px;
	width: 100%;
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter) 50px;
}
.t-footer__left,
.t-footer__right {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 56px;
	min-height: 285px;
}
.t-footer__left { width: 415px; }
.t-footer__right { width: 582px; align-items: flex-end; text-align: right; }

.t-footer__contacts { display: flex; flex-direction: column; gap: 10px; }
.t-footer__contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display);
	font-size: 18px;
	line-height: 23px;
}
.t-footer__ico { display: grid; place-items: center; width: 18px; }
.t-footer__contacts a { transition: color .25s; }
.t-footer__contacts a:hover { color: var(--lime); }

.t-footer__legal { display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 600; line-height: 18px; }
.t-footer__copy { color: var(--sky); }
.t-footer__legal-items { display: flex; flex-wrap: wrap; gap: 16px; }
.t-footer__legal-items a { transition: color .25s; }
.t-footer__legal-items a:hover { color: var(--lime); }

.t-footer__brand { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; width: 100%; }
.t-footer__logo { display: block; width: 100%; }
.t-footer__logo svg { width: 100%; height: auto; }
.t-footer__logo svg path { fill: var(--linen); }
.t-footer__tagline { font-family: var(--font-display); font-size: 18px; line-height: 23px; letter-spacing: .04em; }

.t-footer__credits a {
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .25s var(--ease);
}
.t-footer__credits a:hover { color: var(--lime); }

.t-footer__credits {
	font-size: 14px;
	font-weight: 600;
	line-height: 18px;
	color: var(--sky);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* =========================================================
   Estados de animação
   ========================================================= */
.t-line { display: block; overflow: hidden; }
.t-line__i { display: block; will-change: transform; }
.t-word { display: inline; }
[data-split].is-revealed .t-line { overflow: visible; }

/* Reparte as linhas de forma equilibrada, para não sobrar uma linha curta */
.t-h2, .t-hero__title, .t-cta__title, .t-strip__title,
.t-phero__title, .t-post__title, .t-case-hero__title, .t-intro__q {
	text-wrap: balance;
}

.js-anim [data-fade],
.js-anim [data-stagger-item],
.js-anim [data-p-item],
.js-anim [data-p-stat],
.js-anim [data-s-item] { opacity: 0; }

/* As animações correm sempre; o JS marca <html class="force-motion"> excepto
   quando é pedido o modo reduzido com ?motion=0. */
@media (prefers-reduced-motion: reduce) {
	/* Sem JS os elementos têm de ficar visíveis. Com JS, o fade discreto
	   é feito pelo GSAP (ver initReveals). */
	html:not(.js-anim) [data-fade],
	html:not(.js-anim) [data-stagger-item],
	html:not(.js-anim) [data-p-item],
	html:not(.js-anim) [data-p-stat],
	html:not(.js-anim) [data-s-item] { opacity: 1 !important; transform: none !important; filter: none !important; }

	html:not(.force-motion) .t-hero__scroll span { animation: none; }
	html:not(.force-motion) .t-cta__viewport { height: auto; }
	html:not(.force-motion) .t-cta__stage { position: relative; height: auto; padding: 60px 0; }
	html:not(.force-motion) .t-cta__frame { width: 88%; height: 74svh; }
	html:not(.force-motion) .t-cta__mark { opacity: 1; height: auto; margin-top: 30px; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1200px) {
	:root { --gutter: 56px; }
	.t-header, .t-header.is-solid { padding-left: 40px; padding-right: 40px; }
	.t-hero__content { padding: 0 40px; }
	.t-hero__sound { right: 40px; }
	.t-split { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; }
}

@media (max-width: 1200px) {
	.t-footer__inner { flex-direction: column; gap: 48px; }
	.t-footer__left, .t-footer__right { width: 100%; min-height: 0; }
	.t-footer__right { align-items: flex-start; text-align: left; }
	.t-footer__brand { align-items: flex-start; max-width: 480px; }
	.t-processo__split { grid-template-columns: 1fr; gap: 56px; }
	.t-processo__aside { gap: 32px; }
}

@media (max-width: 1024px) {
	.t-cta__frame { --cta-w: 86%; --cta-h: 64svh; }
	.t-cta__content { padding: 32px; }
	.t-cta__copy { margin-bottom: 22px; }
	.t-problema__stats { align-self: stretch; max-width: none; text-align: left; gap: 32px; }
	.t-portfolio__grid { grid-template-columns: 1fr 1fr; }
	.t-portfolio__grid > :last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
	.t-servicos__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
	.t-split { grid-template-columns: 1fr; gap: 40px; }
	.t-step { gap: 20px; padding: 26px 28px; }
}

@media (max-width: 767px) {
	:root { --gutter: 24px; --radius: 20px; }
	section[data-section] { padding: 80px 0; }
	.t-header, .t-header.is-solid { padding: 16px 24px; }
	.t-header__logo svg { width: 104px; }
	.t-header__actions .t-btn { display: none; }

	.t-hero { padding-bottom: 40px !important; }
	.t-hero__content { padding: 0 24px; gap: 14px; }
	.t-hero__title { max-width: 100%; }
	.t-hero__actions { flex-direction: column; align-items: stretch; }
	.t-hero__scroll { display: none; }

	/* Botão de som passa a ser só o ícone, no canto, longe dos CTAs */
	.t-hero__sound {
		right: 24px;
		bottom: auto;
		top: calc(env(safe-area-inset-top, 0px) + 74px);
		gap: 0;
		width: 44px; height: 44px;
		padding: 0;
		justify-content: center;
	}
	.t-hero__sound-label { display: none; }

	.t-problema { min-height: auto; padding: 90px 0; }
	.t-problema__grid { gap: 48px; }
	.t-problema__stats { flex-direction: column; gap: 28px; }
	.t-menu__panel { width: 100%; border-radius: 0; padding: 32px 24px; }
	.t-menu__item { font-size: 26px; line-height: 36px; }
	.t-solucao__steps { min-height: auto; padding: 90px 0; }

	.t-step { flex-direction: column; align-items: flex-start; gap: 14px; }
	.t-step__num { min-width: 0; }

	.t-portfolio__grid { grid-template-columns: 1fr; }
	.t-portfolio__grid > :last-child { grid-column: span 1; aspect-ratio: 4 / 5; }

	.t-acc > .t-acc__head { padding: 22px 24px; }
	.t-acc__inner { padding: 0 24px 22px; max-width: 100%; }

	/* CTA: o card arranca quase a ecrã cheio para o conteúdo caber sempre */
	.t-cta__viewport { height: 200svh; }
	.t-cta__frame { --cta-w: 92%; --cta-h: 70svh; border-radius: 20px; }
	.t-cta__content { padding: 24px 20px; }
	.t-cta__copy { gap: 12px; margin-bottom: 18px; }
	.t-cta__title { font-size: clamp(26px, 7.4vw, 34px); max-width: 20ch; }
	.t-cta__lead { font-size: 15px; }
	.t-cta__mark-icon { width: 185px; }

	/* Botões podem quebrar em duas linhas em vez de transbordar */
	.t-btn { white-space: normal; }
	.t-btn--lg { padding: 14px 22px; font-size: 15px; line-height: 1.25; }
	.t-footer { border-radius: 28px 28px 0 0; padding-top: 40px; }
	.t-footer { margin-top: -32px; }
	.t-footer__inner { padding-bottom: 40px; }

	/* Alvos de toque: os links do rodapé eram de 16 a 23px de altura.
	   O padding cresce a área tocável sem mexer no ritmo visual. */
	.t-footer__contacts { gap: 2px; }
	.t-footer__contacts li a,
	.t-footer__contacts li > span:not(.t-footer__ico) { display: inline-block; padding: 9px 0; }
	.t-footer__legal { gap: 8px; }
	.t-footer__legal-items { gap: 2px 20px; }
	.t-footer__legal-items a { display: inline-block; padding: 9px 0; }
	.t-legal__link { padding: 13px 16px; }
}
