/* Base do site: tokens (os 11 color styles do Framer), reset, utilitários de
   stack e as regras do runtime de comportamentos (js/runtime/). O CSS de cada
   página (css/pages/*.css) vem do Framer e usa os mesmos --token-<id>. */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root,
body {
	--token-f4791d1a-9a2e-41d6-96ab-8d07b1913b47: rgb(135, 160, 248); /* Primary Color */
	--token-a042497d-749d-4d03-8d3a-78930210d354: rgb(135, 160, 248); /* Accent */
	--token-585068d8-597f-4030-87b2-8b042593890c: rgb(135, 160, 248); /* Blue */
	--token-aac6e62b-db0d-4c18-98fd-25bfbbe75c1b: rgb(26, 31, 65); /* dark-black */
	--token-7e56771b-9583-461c-98f1-67e265ca389c: rgb(174, 139, 249); /* Purple */
	--token-fa800ae7-df21-4e80-b308-e6cb2083c288: rgb(246, 244, 255); /* Light Purple */
	--token-bea14b93-532c-4ac4-96ca-2475370d013a: rgb(241, 246, 255); /* Light Blue */
	--token-2799aae5-8748-4b1f-b085-6820f7d5f7c3: rgb(31, 81, 76); /* Green */
	--token-e9edbccb-ef01-44e1-85d9-d2541653f3b1: rgb(20, 20, 20); /* Black */
	--token-1eeffa50-d0e7-475a-ae85-eb2a3f2ffc02: rgb(255, 255, 255); /* White */
	--token-293ddbb3-9372-4381-ae8b-bd0cced59e35: rgb(250, 250, 250); /* white off */

	/* Nomes legíveis para código novo */
	--color-primary: var(--token-f4791d1a-9a2e-41d6-96ab-8d07b1913b47);
	--color-accent: var(--token-a042497d-749d-4d03-8d3a-78930210d354);
	--color-blue: var(--token-585068d8-597f-4030-87b2-8b042593890c);
	--color-dark-black: var(--token-aac6e62b-db0d-4c18-98fd-25bfbbe75c1b);
	--color-purple: var(--token-7e56771b-9583-461c-98f1-67e265ca389c);
	--color-light-purple: var(--token-fa800ae7-df21-4e80-b308-e6cb2083c288);
	--color-light-blue: var(--token-bea14b93-532c-4ac4-96ca-2475370d013a);
	--color-green: var(--token-2799aae5-8748-4b1f-b085-6820f7d5f7c3);
	--color-black: var(--token-e9edbccb-ef01-44e1-85d9-d2541653f3b1);
	--color-white: var(--token-1eeffa50-d0e7-475a-ae85-eb2a3f2ffc02);
	--color-white-off: var(--token-293ddbb3-9372-4381-ae8b-bd0cced59e35);
}

/* ── Fonte raiz por breakpoint (1200 / 810 / 375 → 15 / 15 / 14 px) ───────── */
html { font-size: 93.75%; }
@media (max-width: 809.98px) { html { font-size: 87.5%; } }
html body { background: rgb(251, 250, 247); }

/* ── Reset (o mesmo do Framer) ───────────────────────────────────────────── */
html, body, #main { box-sizing: border-box; margin: 0; padding: 0; }
:root { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
* { box-sizing: border-box; -webkit-font-smoothing: inherit; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }
body, input, textarea, select, button { font-family: sans-serif; font-size: 12px; }

/* ── Toque no celular (skill emil-mobile-native) ─────────────────────────── */
/* sem o flash cinza/azul do navegador ao tocar; sem aumentar a fonte no paisagem */
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
/* toque responde na hora (sem a espera do toque duplo) */
a, button, input, select, textarea, label, summary, [role="button"] { touch-action: manipulation; }
/* segurar o dedo num botão não seleciona o texto dele */
button, [role="button"] { -webkit-user-select: none; user-select: none; }
/* o iPhone dá zoom ao focar um campo com menos de 16px e não volta; só no toque */
@media (pointer: coarse) {
	input:not([type="checkbox"]):not([type="radio"]), textarea, select { font-size: 16px !important; }
}

/* ── Breakpoints: as 3 árvores do SSR do Framer ──────────────────────────── */
@media (min-width: 1200px) { .hidden-64y1ao { display: none !important; } }
@media (min-width: 810px) and (max-width: 1199.98px) { .hidden-15aj1u5 { display: none !important; } }
@media (max-width: 809.98px) { .hidden-10xx033 { display: none !important; } }

/* ── Utilitários de stack (equivalentes ao layout: stack do Framer) ─────── */
.stack { display: flex; flex-direction: column; flex-wrap: nowrap; }
.stack-row { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; }
.stack-center { align-items: center; justify-content: center; }
.fr { flex: 1 0 0; width: 1px; } /* "1fr" do Framer */

/* ── Runtime: appear (js/runtime/appear.js) ──────────────────────────────── */
html.js [data-appear] {
	opacity: var(--ap-o, 0);
	transform: var(--ap-from, none);
}
html.js [data-appear].ap-in {
	opacity: 1;
	transform: var(--ap-to, none);
	transition:
		opacity var(--ap-dur, 0.8s) var(--ap-ease, ease-out) var(--ap-delay, 0s),
		transform var(--ap-dur, 0.8s) var(--ap-ease, ease-out) var(--ap-delay, 0s);
}
@media (prefers-reduced-motion: reduce) {
	html.js [data-appear] { opacity: 1; transform: var(--ap-to, none); transition: none !important; }
}

/* ── Runtime: ticker (js/runtime/ticker.js) ──────────────────────────────── */
@keyframes cde-ticker { to { transform: translateX(var(--ticker-distance, -50%)); } }

/* ── Runtime: overlay com <dialog> (js/runtime/overlay.js) ───────────────── */
dialog.cde-overlay {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: auto;
	display: block;
	opacity: 0;
	transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}
dialog.cde-overlay:not([open]) { display: none; }
dialog.cde-overlay[open] { opacity: 1; }
dialog.cde-overlay.is-closing { opacity: 0; }
@starting-style { dialog.cde-overlay[open] { opacity: 0; } }
dialog.cde-overlay::backdrop { background: transparent; } /* o fundo é o div do Framer dentro do dialog */
html.cde-lock, html.cde-lock body { overflow: hidden; }

[hidden] { display: none !important; }

/* ── Video Component 3 (js/components/vc3.js) ────────────────────────────── */
.cde-vc3 { display: contents; }
@keyframes cde-progress { from { width: 0; } to { width: 100%; } }
.cde-progress-fill { width: 0; animation: cde-progress 10s linear forwards; }

/* ── Formulários (js/forms/) ─────────────────────────────────────────────── */
.cde-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cde-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: conic-gradient(from 0deg, rgba(255, 255, 255, 0) 0deg, #fff 300deg);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
	animation: cde-spin 1s linear infinite;
}
@keyframes cde-spin { to { transform: rotate(360deg); } }
[data-state="loading"] > .cde-spinner { display: block; }
[data-state="loading"] > .cde-btn-label { display: none; }
@media (max-width: 809.98px) { [data-fv2] > [data-fv2-step] { width: 100%; } }

/* ── Busca do blog (js/components/blog-search.js), visual do Site Search do Framer ── */
dialog.cde-search { margin: 0; padding: 0; border: 0; background: transparent; width: 100%; max-width: none; height: 100%; max-height: none; }
dialog.cde-search::backdrop { background: rgba(0, 0, 0, 0.1); }
.cde-search__box {
	position: absolute; top: 195px; left: 50%; transform: translateX(-50%);
	width: min(500px, calc(100% - 32px)); background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12); font-family: Inter, "Inter Placeholder", sans-serif;
}
@media (max-width: 809.98px) { .cde-search__box { top: 16px; } }
.cde-search__field { display: flex; align-items: center; gap: 12px; padding: 0 20px; height: 56px; }
.cde-search__field input { flex: 1; border: 0; outline: 0; font: 500 16px/1 Inter, "Inter Placeholder", sans-serif; color: #111; background: transparent; }
.cde-search__field input::-webkit-search-cancel-button { display: none; }
.cde-search__clear { border: 0; background: none; padding: 0; cursor: pointer; display: flex; }
.cde-search__results { list-style: none; margin: 0; padding: 0; max-height: min(440px, 60vh); overflow: auto; }
.cde-search__results:not(:empty) { border-top: 1px solid #eee; }
.cde-search__results a { display: block; padding: 14px 20px; text-decoration: none; color: #111; }
.cde-search__results a.is-active{ background: #f3f3f3; }@media (hover: hover) and (pointer: fine){.cde-search__results a:hover{ background: #f3f3f3; }}
.cde-search__results strong { display: block; font: 500 14px/1.4 Inter, "Inter Placeholder", sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cde-search__results span { display: block; margin-top: 4px; font: 400 12px/1.4 Inter, "Inter Placeholder", sans-serif; color: #888; }
.cde-search__empty { padding: 16px 20px; color: #888; font: 400 14px Inter, sans-serif; }

/* ── Banner de cookies (js/components/cookies.js), visual do Cookie Banner do Framer ── */
.cde-cookies {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 16px;
	display: flex; justify-content: center; pointer-events: none;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cde-cookies[hidden] { display: none; }
.cde-cookies__card {
	pointer-events: auto; box-sizing: border-box; width: 100%; max-width: 600px; max-height: calc(100vh - 32px); overflow: auto;
	padding: 20px; border-radius: 24px; background: rgb(26, 31, 65); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05); color: #fff;
	animation: cde-cookies-in 0.3s ease-out;
}
@keyframes cde-cookies-in { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .cde-cookies__card { animation: none; } }
.cde-cookies__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; line-height: 17px; }
.cde-cookies__text { font-size: 14px; line-height: 21px; }
.cde-cookies__text a { color: rgb(135, 160, 248); text-decoration: none; }
@media (hover: hover) and (pointer: fine){.cde-cookies__text a:hover{ text-decoration: underline; }}
.cde-cookies__options { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.cde-cookies__options[hidden] { display: none; }
.cde-cookies__option { padding: 12px; border-radius: 8px; background: rgba(0, 0, 0, 0.02); }
.cde-cookies__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cde-cookies__name { font-size: 12px; font-weight: 600; line-height: 15px; }
.cde-cookies__always { font-size: 12px; line-height: 15px; color: rgb(135, 160, 248); }
.cde-cookies__desc { margin-top: 10px; font-size: 12px; line-height: 18px; }
.cde-cookies__switch {
	position: relative; flex: none; width: 24px; height: 14px; padding: 2px; border: 0; border-radius: 20px;
	background: rgba(255, 255, 255, 0.1); cursor: pointer; transition: background-color 0.2s;
}
.cde-cookies__switch span { display: block; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.cde-cookies__switch[aria-checked="true"] { background: rgb(135, 160, 248); }
.cde-cookies__switch[aria-checked="true"] span { transform: translateX(10px); }
.cde-cookies__buttons { margin-top: 16px; display: flex; gap: 10px; }
.cde-cookies__btn {
	flex: 1 1 0; padding: 16px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff;
	font: 400 14px/14px Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; white-space: nowrap; cursor: pointer;
	transition: opacity 0.2s;
}
.cde-cookies__btn[hidden] { display: none; }
.cde-cookies__btn--primary { background: rgb(135, 160, 248); }
@media (hover: hover) and (pointer: fine){.cde-cookies__btn:hover{ opacity: 0.6; }}
.cde-cookies button:focus-visible, .cde-cookies a:focus-visible { outline: 2px solid rgb(135, 160, 248); outline-offset: 2px; }
@media (max-width: 599.98px) {
	.cde-cookies__card { max-width: 340px; }
	.cde-cookies__buttons { flex-direction: column; }
	.cde-cookies__btn { flex: none; padding: 10px; }
}
