/* Mix2Out — pagina oficial.
   Paleta tirada do proprio plugin (plugin/Mix2OutPlugin.cpp, linhas 45-50) e da
   pagina embarcada (core/src/web_assets.h), para a identidade nao brigar entre
   produto e site. Mobile-first: o layout base e o do celular, e as media queries
   so acrescentam. Sem dependencia externa, sem etapa de build. */

:root {
	--bg:      #181e20;  /* mesma do plugin e da pagina web */
	--bg2:     #1f2628;
	--bg3:     #2a3134;
	--line:    #394245;
	--text:    #e8e9ed;
	--dim:     #7e838a;
	--accent:  #5cd6d6;  /* turquesa do logo */
	--accent2: #a7e8e8;
	--warn:    #e8655f;
	--radius:  14px;
	--wrap:    1100px;
	--ease:    cubic-bezier(.2, .7, .3, 1);
}

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

html { scroll-behavior: smooth; }
/* Compensa o cabecalho fixo ao pular por ancora. */
section { scroll-margin-top: 72px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 16px/1.65 "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
a:hover { color: var(--accent2); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 7vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.lead  { font-size: 1.1rem; color: var(--text); max-width: 62ch; }
.muted { color: var(--dim); max-width: 62ch; }
.note  { color: var(--dim); font-size: .9rem; max-width: 70ch; }
.note code {
	background: var(--bg3); border: 1px solid var(--line); border-radius: 6px;
	padding: .1em .45em; font-size: .9em; color: var(--accent2);
	overflow-wrap: anywhere;
}

/* Foco visivel em tudo que recebe foco: a navegacao por teclado precisa disso. */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--accent); color: #0d1113; padding: .7em 1.2em; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

/* ----------------------------------------------------------------- cabecalho */
.top {
	position: sticky; top: 0; z-index: 50;
	background: color-mix(in srgb, var(--bg) 92%, transparent);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; margin-right: auto; }
.brand img { width: auto; height: 30px; }

.burger {
	margin-left: auto; width: 42px; height: 42px; padding: 10px;
	display: grid; gap: 5px; align-content: center;
	background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.burger span {
	display: block; height: 2px; background: var(--text); border-radius: 2px;
	transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
	display: none;
	position: absolute; inset: 60px 0 auto; padding: 8px 16px 18px;
	background: var(--bg); border-bottom: 1px solid var(--line);
}
.menu.open { display: block; }
.menu ul { list-style: none; margin: 0 0 10px; padding: 0; }
.menu a {
	display: block; padding: 11px 4px; color: var(--text);
	text-decoration: none; border-bottom: 1px solid var(--bg3);
}
.menu a:hover { color: var(--accent); }

.lang { display: flex; gap: 6px; }
.lang button {
	flex: 1; padding: .5em 0; min-height: 40px;
	background: none; color: var(--dim); cursor: pointer;
	border: 1px solid var(--line); border-radius: 9px;
	font: inherit; font-size: .85rem; font-weight: 600; letter-spacing: .04em;
	transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang button:hover { color: var(--text); border-color: var(--dim); }
.lang button[aria-pressed="true"] {
	color: #0d1113; background: var(--accent); border-color: var(--accent);
}

/* --------------------------------------------------------------------- botoes */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.5em; min-height: 48px;
	border: 1px solid var(--line); border-radius: 999px;
	background: var(--bg2); color: var(--text);
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	transition: transform .18s var(--ease), background .2s var(--ease),
	            border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--bg3); border-color: var(--dim); color: var(--text); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #0d1113; }
.btn--primary:hover { background: var(--accent2); border-color: var(--accent2); color: #0d1113; }
.btn--lg { font-size: 1.05rem; padding: 1em 2em; }
.btn .ico { width: 20px; height: 20px; }

/* Download ainda nao configurado: parece inativo porque esta inativo. */
.btn[aria-disabled="true"] {
	background: var(--bg2); border-color: var(--line); color: var(--dim);
	cursor: not-allowed; pointer-events: none;
}

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1em; }
.link { display: inline-block; font-weight: 600; font-size: .95rem; }

/* ----------------------------------------------------------------------- hero */
.hero {
	position: relative; padding: 48px 0 56px;
	background:
		radial-gradient(900px 420px at 80% -8%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%),
		radial-gradient(700px 360px at 0% 10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%);
}
.hero__in { display: grid; gap: 40px; }
.hero__mark { display: block; color: var(--accent); font-size: .42em; letter-spacing: .22em; text-transform: uppercase; margin-bottom: .9em; }
.by { color: var(--dim); font-size: .9rem; margin: 0; }

.hero__art { display: flex; justify-content: center; }

/* Moldura de celular: enquadra a captura real sem alterar a imagem. */
.phone {
	width: min(260px, 72vw); padding: 10px;
	border: 1px solid var(--line); border-radius: 34px;
	background: linear-gradient(170deg, var(--bg3), var(--bg2));
	box-shadow: 0 24px 60px rgba(0, 0, 0, .5),
	            0 0 0 1px color-mix(in srgb, var(--accent) 12%, transparent);
}
.phone__screen { border-radius: 26px; overflow: hidden; background: var(--bg); }

/* --------------------------------------------------------------------- faixas */
.band { padding: 60px 0; border-top: 1px solid var(--line); }
.band--alt { background: color-mix(in srgb, var(--bg2) 55%, var(--bg)); }
.sub { margin: 2.2em 0 .9em; color: var(--accent); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }

/* ------------------------------------------------------------------- download */
.dl { display: grid; gap: 28px; margin: 28px 0 36px; }
.dl__main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.dl__main .note { margin: 0; }

.specs { margin: 0; padding: 20px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--bg3); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--dim); font-size: .9rem; }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.cols { display: grid; gap: 18px; }
.card { padding: 22px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); }
.card h3 { color: var(--accent); }
.card p:last-child { margin-bottom: 0; }
.card--warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); }
.card--warn h3 { color: var(--warn); }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: .6em; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
	content: ""; position: absolute; left: 4px; top: .55em;
	width: 9px; height: 5px; border-left: 2px solid var(--accent);
	border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ----------------------------------------------------------------- instalacao */
.steps { counter-reset: s; list-style: none; margin: 28px 0 26px; padding: 0; display: grid; gap: 14px; }
.steps li {
	counter-increment: s; position: relative;
	padding: 22px 22px 22px 64px;
	background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.steps li:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-2px); }
.steps li::before {
	content: counter(s);
	position: absolute; left: 18px; top: 20px;
	width: 30px; height: 30px; display: grid; place-items: center;
	background: var(--accent); color: #0d1113; border-radius: 50%;
	font-weight: 700; font-size: .95rem;
}
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; color: var(--dim); }
.steps .ico { position: absolute; right: 18px; top: 18px; width: 26px; height: 26px; opacity: .3; }

.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- screenshots */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Capturas em retrato (a pagina do celular e 469x1015): esticadas ate a largura da
   coluna viram paredes de imagem. Ficam em largura de celular, com a proporcao
   original intacta -- o tamanho real esta a um clique, no lightbox. */
/* Capturas que nao devem passar da largura nativa: ampliar alem dela so borra. A
   largura do item fica proxima do tamanho real, e o original esta a um clique no
   lightbox. Flex em vez de auto-fit porque auto-fit deixa trilha vazia de 0px cujo
   gap continua ocupando espaco. */
.grid--centro, .grid--portrait { display: flex; flex-wrap: wrap; justify-content: center; }
.grid--portrait .shot { width: 215px; max-width: 46vw; }   /* pagina do celular, 469x1015 */
.grid--centro .shot--painel { width: 330px; max-width: 86vw; }  /* painel do plugin, 517x621 */

.shot { margin: 0; }
.shot__btn {
	display: block; width: 100%; padding: 0; cursor: zoom-in;
	background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.shot__btn:hover { border-color: var(--accent); transform: translateY(-3px); }
/* Preserva a proporcao original da captura; nada e cortado nem esticado. */
.shot__btn img { width: 100%; height: auto; }
.shot figcaption { margin-top: .7em; color: var(--dim); font-size: .9rem; }

.slot {
	display: grid; place-items: center; gap: 8px; text-align: center;
	padding: 40px 20px; min-height: 260px;
	border: 1px dashed var(--line); border-radius: var(--radius); color: var(--dim);
}
.slot svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 1.5; opacity: .6; }
.slot strong { color: var(--text); font-size: .95rem; }
.slot span { font-size: .85rem; max-width: 30ch; }

/* ----------------------------------------------------------------------- doar */
.donate { max-width: 680px; text-align: center; }
.donate .note { margin-inline: auto; }
.donate p { color: var(--dim); }
.donate .btn { margin: 1.2em 0 1em; }

/* -------------------------------------------------------------------- rodape */
.foot { border-top: 1px solid var(--line); padding: 44px 0 28px; background: var(--bg2); }
.foot__in { display: grid; gap: 30px; }
.foot__brand img { height: 26px; width: auto; margin-bottom: .9em; }
.foot__brand p { margin: 0; font-size: .92rem; }
.foot__nav h2 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot__nav ul { list-style: none; margin: 0; padding: 0; }
.foot__nav li { margin-bottom: .45em; }
.foot__nav a { text-decoration: none; }
.foot__legal { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__legal p { margin: 0 0 .35em; font-size: .85rem; color: var(--dim); }

/* ------------------------------------------------------------------ lightbox */
.box {
	position: fixed; inset: 0; z-index: 90;
	display: grid; place-items: center; padding: 24px;
	background: rgba(8, 11, 12, .93);
	animation: fade .2s var(--ease);
}
.box[hidden] { display: none; }
.box img {
	max-width: 100%; max-height: calc(100vh - 90px);
	width: auto; border-radius: 10px; border: 1px solid var(--line);
}
.box__x {
	position: absolute; top: 14px; right: 16px;
	width: 46px; height: 46px; line-height: 1;
	background: var(--bg2); color: var(--text); font-size: 26px; cursor: pointer;
	border: 1px solid var(--line); border-radius: 50%;
}
.box__x:hover { background: var(--bg3); color: var(--accent); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- respiracao */
@media (min-width: 720px) {
	.cols { grid-template-columns: 1fr 1fr; }
	.dl { grid-template-columns: 1.3fr 1fr; align-items: start; }
	.steps { grid-template-columns: 1fr 1fr; }
	.steps li:first-child { grid-column: 1 / -1; }
	.foot__in { grid-template-columns: 2fr 1fr; }
}

@media (min-width: 900px) {
	section { scroll-margin-top: 64px; }
	.burger { display: none; }
	.menu { display: flex; position: static; align-items: center; gap: 22px; padding: 0; background: none; border: 0; }
	.menu ul { display: flex; gap: 6px; margin: 0; }
	.menu a { padding: .5em .7em; border: 0; font-size: .95rem; }
	.lang button { min-width: 42px; padding: .35em .6em; }

	.hero { padding: 76px 0 86px; }
	.hero__in { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }
	.phone { width: min(290px, 100%); }
	.band { padding: 84px 0; }
}

/* Respeita quem pediu menos movimento no sistema. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: .01ms !important; animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
