@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Karla:wght@400;500;700&display=swap');

:root {
	--primary: #0B119C;
	--primary-dark: #070B66;
	--primary-tint: #E8EAFF;
	--accent: #E8622C;
	--accent-tint: #FDEAE1;
	--bg: #F5F7FD;
	--surface: #FFFFFF;
	--surface-2: #EEF0F9;
	--border: #E0E3F0;
	--text: #1A1B2E;
	--text-muted: #5B5F79;
	--shadow: 0 1px 2px rgba(11, 17, 156, 0.05), 0 8px 24px rgba(11, 17, 156, 0.07);
	color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Karla', system-ui, sans-serif;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
	font-family: 'Manrope', system-ui, sans-serif;
	color: var(--text);
	line-height: 1.25;
	text-wrap: balance;
	margin: 0 0 14px;
}

p { margin: 0 0 14px; }
a { color: var(--primary); }
img { max-width: 100%; display: block; }

.container {
	max-width: 1120px;
	margin: 0 auto;
	padding-inline: 20px;
}

/* ---------- header / nav ---------- */
header.site-header {
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.nav-row {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-block: 14px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: 1.125rem;
	letter-spacing: 0.2px;
}

.brand img { width: 34px; height: 34px; }

nav.main-nav {
	display: flex;
	gap: 4px;
	margin-left: auto;
}

nav.main-nav a {
	color: var(--text-muted);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.9062rem;
	padding: 8px 14px;
	border-radius: 8px;
}

nav.main-nav a:hover,
nav.main-nav a.active {
	background: var(--primary-tint);
	color: var(--primary);
}

.nav-cta {
	background: var(--accent) !important;
	color: #fff !important;
}
.nav-cta:hover { background: #d4551f !important; }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 8px 10px;
	margin-left: auto;
	cursor: pointer;
}

@media (max-width: 860px) {
	nav.main-nav {
		display: none;
		flex-direction: column;
		width: 100%;
		margin-top: 12px;
		gap: 2px;
	}
	nav.main-nav.open { display: flex; }
	.nav-toggle { display: block; }
	.nav-row { flex-wrap: wrap; }
}

/* ---------- hero ---------- */
.hero {
	padding-block: 64px 56px;
}
.hero-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	align-items: center;
}
@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
	display: inline-block;
	background: var(--accent-tint);
	color: var(--accent);
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 0.7812rem;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.hero h1 {
	font-size: clamp(1.875rem, 4.2vw, 2.875rem);
	font-weight: 800;
}
.hero p.lead {
	font-size: 1.125rem;
	color: var(--text-muted);
	max-width: 52ch;
}
.hero-art {
	background: linear-gradient(150deg, var(--primary) 0%, var(--primary-dark) 100%);
	border-radius: 20px;
	padding: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	box-shadow: var(--shadow);
}
.hero-art img { width: 55%; filter: brightness(0) invert(1); opacity: 0.92; }

.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 0.9375rem;
	padding: 13px 22px;
	border-radius: 10px;
	text-decoration: none;
	border: none;
	cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #d4551f; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary-tint); }
.btn-outline:hover { background: var(--primary-tint); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- sections ---------- */
section { padding-block: 56px; }
section.alt { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-head p { color: var(--text-muted); }

.grid {
	display: grid;
	gap: 20px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) {
	.grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 26px;
	box-shadow: var(--shadow);
}
.card .icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--primary-tint);
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9062rem; margin: 0; }

.card-list {
	list-style: none;
	margin: 14px 0 0;
	padding: 0;
}
.card-list li {
	display: flex;
	gap: 8px;
	font-size: 0.875rem;
	color: var(--text-muted);
	margin-bottom: 8px;
}
.card-list li:before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	margin-top: 8px;
}

/* ---------- category tag ---------- */
.tag {
	display: inline-block;
	font-family: 'Manrope', sans-serif;
	font-size: 0.7188rem;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 12px;
}
.tag.hardware { background: var(--primary-tint); color: var(--primary); }
.tag.software { background: var(--accent-tint); color: var(--accent); }

/* ---------- stats ---------- */
.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stats .num {
	font-family: 'Manrope', sans-serif;
	font-weight: 800;
	font-size: 2rem;
	color: var(--primary);
}
.stats .label { color: var(--text-muted); font-size: 0.8438rem; }

/* ---------- CTA band ---------- */
.cta-band {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	border-radius: 20px;
	padding: 44px;
	color: #fff;
	text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C7CCF7; }
.cta-band .btn-primary { background: var(--accent); }

/* ---------- FAQ accordion ---------- */
.faq-item {
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--surface);
	margin-bottom: 12px;
	overflow: hidden;
}
.faq-question {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 18px 20px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 0.9688rem;
	color: var(--text);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.faq-question .chev { transition: transform 0.2s ease; flex: none; color: var(--primary); }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.25s ease;
	padding: 0 20px;
	color: var(--text-muted);
	font-size: 0.9062rem;
}
.faq-item.open .faq-answer { padding-bottom: 18px; }

/* ---------- contact ---------- */
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-row { margin-bottom: 16px; }
.form-row label {
	display: block;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 0.8125rem;
	margin-bottom: 6px;
	color: var(--text);
}
.form-row input,
.form-row textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	font-family: inherit;
	font-size: 0.9062rem;
	color: var(--text);
}
.form-row input:focus,
.form-row textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-tint);
}
.form-row textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 26px;
}
.contact-info-card h3 { font-size: 1rem; margin-bottom: 16px; }
.contact-info-row {
	display: flex;
	gap: 12px;
	margin-bottom: 16px;
	align-items: flex-start;
}
.contact-info-row .icon {
	width: 36px; height: 36px; flex: none;
	background: var(--primary-tint);
	color: var(--primary);
	border-radius: 10px;
	display: flex; align-items: center; justify-content: center;
}
.contact-info-row .icon svg { width: 18px; height: 18px; }
.contact-info-row span, .contact-info-row a { font-size: 0.875rem; color: var(--text-muted); text-decoration: none; }

.form-msg {
	display: none;
	padding: 12px 14px;
	border-radius: 8px;
	font-size: 0.875rem;
	margin-bottom: 16px;
}
.form-msg.success { display: block; background: #E4F5EE; color: #137A4F; }
.form-msg.error { display: block; background: #FDEAE1; color: #B3401A; }

/* ---------- footer ---------- */
footer.site-footer {
	background: #12131F;
	color: #A7ABC9;
	padding-block: 44px 24px;
	margin-top: 40px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: 30px;
	margin-bottom: 30px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; } .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; } }
.footer-grid h4 {
	color: #fff;
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 14px;
}
.footer-grid a {
	display: block;
	color: #A7ABC9;
	text-decoration: none;
	font-size: 0.875rem;
	margin-bottom: 10px;
}
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 30px; filter: brightness(0) invert(1); }
.footer-brand span { color: #fff; font-family: 'Manrope', sans-serif; font-weight: 800; }
.footer-bottom {
	border-top: 1px solid #262841;
	padding-top: 20px;
	font-size: 0.7812rem;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}

/* ---------- page hero (inner pages) ---------- */
.page-hero {
	padding-block: 44px;
	background: var(--surface);
	border-bottom: 1px solid var(--border);
	text-align: center;
}
.page-hero h1 { font-size: clamp(1.625rem, 3.6vw, 2.375rem); }
.page-hero p { color: var(--text-muted); max-width: 60ch; margin: 0 auto; }

/* ---------- data table (Sobre) ---------- */
table.data-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}
table.data-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--border);
	font-size: 0.9062rem;
}
table.data-table tr:last-child td { border-bottom: none; }
table.data-table td:first-child {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	color: var(--text-muted);
	width: 180px;
}

/* ---------- blog ---------- */
.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }

.post-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 24px;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}
.post-card:hover { border-color: var(--accent); }
.post-date {
	font-family: 'Manrope', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--accent);
	text-transform: uppercase;
	letter-spacing: 0.4px;
}
.post-card h3 { font-size: 1.0625rem; margin: 0; }
.post-card p { color: var(--text-muted); font-size: 0.875rem; margin: 0; }
.post-readmore { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 0.8125rem; color: var(--primary); }

/* single post article */
article.post {
	max-width: 720px;
	margin: 0 auto;
}
article.post .post-date { display: block; margin-bottom: 10px; }
article.post h1 { font-size: clamp(1.625rem, 4vw, 2.25rem); margin-bottom: 18px; }
article.post p { font-size: 1rem; color: var(--text); margin-bottom: 16px; }
article.post h2 { font-size: 1.25rem; margin: 28px 0 12px; }
article.post ul { padding-left: 22px; margin-bottom: 16px; }
article.post li { margin-bottom: 8px; color: var(--text); }
.post-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 0.8438rem;
	color: var(--text-muted);
	text-decoration: none;
	margin-bottom: 20px;
}
.post-back:hover { color: var(--primary); }

/* home blog carousel */
.blog-carousel {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	box-shadow: var(--shadow);
	padding: 32px;
	min-height: 160px;
}
.bc-slide { display: none; }
.bc-slide.active { display: block; }
.bc-slide .post-date { display: block; margin-bottom: 8px; }
.bc-slide h3 { font-size: 1.25rem; margin: 0 0 10px; }
.bc-slide p { color: var(--text-muted); margin: 0 0 14px; max-width: 62ch; }
.bc-dots {
	display: flex;
	gap: 8px;
	margin-top: 6px;
}
.bc-dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--border); border: none; padding: 0; cursor: pointer;
}
.bc-dot.active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ============ Accessibility widget ============ */
@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');

html.a11y-fs-110 { font-size: 110%; }
html.a11y-fs-120 { font-size: 120%; }
html.a11y-fs-130 { font-size: 130%; }

html.a11y-contrast {
	--primary: #FFEB3B;
	--primary-dark: #FDD835;
	--primary-tint: #3a3000;
	--accent: #29B6F6;
	--accent-tint: #072a33;
	--bg: #000000;
	--surface: #0d0d0d;
	--surface-2: #1a1a1a;
	--border: #FFFFFF;
	--text: #FFFFFF;
	--text-muted: #DDDDDD;
	--shadow: none;
}
html.a11y-contrast .hero-art { background: #0d0d0d !important; border: 2px solid #fff; }
html.a11y-contrast .hero-art img { filter: none !important; }
html.a11y-contrast .cta-band { background: #0d0d0d !important; border: 2px solid #FFEB3B; }
html.a11y-contrast .card, html.a11y-contrast .post-card, html.a11y-contrast .contact-info-card,
html.a11y-contrast .faq-item, html.a11y-contrast table.data-table, html.a11y-contrast .blog-carousel {
	border: 2px solid #fff !important;
}

html.a11y-readable body,
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable h4,
html.a11y-readable .btn, html.a11y-readable nav.main-nav a {
	font-family: 'Atkinson Hyperlegible', Arial, sans-serif !important;
}

html.a11y-links-underline p a,
html.a11y-links-underline article a,
html.a11y-links-underline .contact-info-row a,
html.a11y-links-underline .post-readmore {
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

html.a11y-reduce-motion,
html.a11y-reduce-motion * {
	transition: none !important;
	animation: none !important;
	scroll-behavior: auto !important;
}

/* Floating button + panel */
#a11y-toggle {
	position: fixed;
	left: 20px;
	bottom: 20px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	border: none;
	box-shadow: 0 4px 16px rgba(11, 17, 156, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 9998;
}
#a11y-toggle svg { width: 26px; height: 26px; }
#a11y-toggle:hover { background: var(--primary-dark); }

#a11y-panel {
	position: fixed;
	left: 20px;
	bottom: 82px;
	width: 280px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(11, 17, 156, 0.18);
	padding: 18px;
	z-index: 9999;
	display: none;
}
#a11y-panel.open { display: block; }
#a11y-panel h4 {
	margin: 0 0 14px;
	font-size: 0.9375rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#a11y-panel .a11y-close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-muted);
	font-size: 1.25rem;
	line-height: 1;
	padding: 2px;
}
.a11y-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 0;
	border-bottom: 1px solid var(--border);
	font-size: 0.8125rem;
}
.a11y-row:last-of-type { border-bottom: none; }
.a11y-fs-controls { display: flex; gap: 6px; }
.a11y-fs-controls button {
	width: 28px; height: 28px;
	border-radius: 6px;
	border: 1px solid var(--border);
	background: var(--surface-2);
	color: var(--text);
	cursor: pointer;
	font-weight: 700;
}
.a11y-switch {
	position: relative;
	width: 38px;
	height: 22px;
	border-radius: 999px;
	background: var(--border);
	border: none;
	cursor: pointer;
	flex: none;
}
.a11y-switch:before {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.a11y-switch.on { background: var(--accent); }
.a11y-switch.on:before { transform: translateX(16px); }
.a11y-reset {
	margin-top: 14px;
	width: 100%;
	background: var(--surface-2);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: 8px;
	padding: 8px;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 0.8125rem;
	cursor: pointer;
}
html.a11y-contrast #a11y-panel,
html.a11y-contrast #a11y-toggle { border: 2px solid #fff; }

/* Botão flutuante do WhatsApp (o de acessibilidade fica à esquerda) */
.wa-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9997;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 52px;
	padding: 0 18px 0 14px;
	border-radius: 999px;
	background: #25D366;
	color: #fff;
	font-weight: 700;
	font-size: 0.9375rem;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
	transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float svg { width: 26px; height: 26px; flex: none; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); color: #fff; }
.wa-float:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
	.wa-float { width: 52px; padding: 0; justify-content: center; }
	.wa-float span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }
html.a11y-contrast .wa-float { border: 2px solid #fff; }

/* Campo-isca do formulário (anti-spam): invisível para pessoas */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
