@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
	color-scheme: light;
	--paper: #f5f1e8;
	--paper-2: #efe9dc;
	--card: #fffdf8;
	--line: #e3dccd;
	--line-2: #d9d0be;
	--ink: #17150f;
	--ink-hover: #2e2a22;
	--ink-2: #3b372f;
	--muted: #5e584c;
	--marker: #ffe347;
	--marker-soft: #fff6bf;
	--del: #b3261e;
	--display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
	--radius: 16px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--marker); color: var(--ink); }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 16px/1.55 "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
main, .top, footer { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h2 { font-size: clamp(30px, 4.4vw, 42px); text-align: center; }
p { margin: 0; }
a { color: var(--ink); text-underline-offset: 3px; }
.muted { color: var(--muted); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
code { padding: 1px 6px; border-radius: 6px; background: var(--paper-2); font: 14px ui-monospace, Consolas, monospace; }

/* o grifo de marca-texto: o que tentaram apagar, destacado */
mark { padding: 0 .12em; background: linear-gradient(var(--marker), var(--marker)) 0 90% / 100% 68% no-repeat; color: inherit; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* aviso de "é no computador": só em tela de celular */
.notice { display: none; margin: 0; padding: 10px 20px; background: var(--marker); color: var(--ink); font-size: 14px; text-align: center; }
@media (max-width: 760px) { .notice { display: block; } }

/* ---- botões ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 26px;
	border: 1.5px solid var(--ink); border-radius: 12px;
	background: var(--ink); color: var(--paper);
	font: inherit; font-weight: 700; text-decoration: none; text-align: center;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.btn:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn.wide { width: 100%; }
.link { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---- topo ---- */
.top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand span { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
nav { display: flex; align-items: center; gap: 18px; }
nav > a:not(.btn) { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
nav > a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* ---- hero ---- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 44px 0 80px; }
.eyebrow { margin-bottom: 16px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.04em; }
.lead { margin: 22px 0 30px; max-width: 32em; color: var(--ink-2); font-size: 18px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14.5px; }
.ticks li::before { content: "✓"; margin-right: 7px; font-weight: 800; }

/* conversa de exemplo */
.chat { border: 1px solid var(--line); border-radius: 20px; background: var(--paper-2); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 15px; font-weight: 700; }
.chat-head small { color: var(--muted); font-size: 12.5px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #cfc5b0; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 22px; }
.msg { position: relative; max-width: 84%; padding: 8px 11px 7px; border-radius: 14px; background: var(--card); font-size: 14.5px; line-height: 1.4; }
.msg.in { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--ink); color: var(--paper); }
.meta { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 11.5px; }
.msg.out .meta { color: #b9b2a3; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-weight: 700; color: var(--ink); }
.tag svg { width: 12px; height: 12px; fill: currentColor; }
.tag.del { color: var(--del); }
.orig { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: 12.5px; }
.msg.photo { padding: 5px; }
.pic { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 200px; max-width: 100%; height: 112px; border-radius: 10px; background: var(--line); }
.pic::before { content: ""; width: 26px; height: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b372f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4Z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pic span { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.msg.photo .meta { padding: 0 6px 2px; }

/* ---- seções ---- */
section { padding: 72px 0; }
.sub { margin: 14px auto 0; max-width: 38em; color: var(--ink-2); text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.grid3 article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.grid3 h3 { margin-bottom: 10px; font-size: 22px; }
.grid3 p { color: var(--ink-2); }

.steps ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 28px 26px 28px 80px; border-radius: var(--radius); background: var(--paper-2); counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 24px; top: 24px; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--marker); font-family: var(--display); font-size: 19px; font-weight: 800; }
.steps b { display: block; margin-bottom: 4px; font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 15px; }

/* ---- planos ---- */
.plans { scroll-margin-top: 20px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 20px; margin-top: 40px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); }
.plan.best { border: 2px solid var(--ink); }
.plan h3 { color: var(--ink-2); font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.price { margin: 10px 0 2px; font-family: var(--display); font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price small { margin-right: 4px; color: var(--muted); font-size: 20px; font-weight: 700; vertical-align: 20px; }
.per { margin-bottom: 24px; color: var(--muted); font-size: 14.5px; }
.plan .btn { margin-top: auto; }
.badge { position: absolute; top: -13px; left: 26px; padding: 3px 12px; border-radius: 6px; background: var(--marker); color: var(--ink); font-size: 12.5px; font-weight: 800; }
.plans .sub:last-child { margin-top: 24px; font-size: 15px; }

/* ---- instalar ---- */
.dl { max-width: 560px; margin: 28px auto 0; }
.dl label { margin-top: 0; }
.dl .inline input { height: 52px; font: 600 16px ui-monospace, Consolas, monospace; letter-spacing: .02em; }
.dl .btn { flex: none; }
#dlErr { margin-top: 10px; color: var(--del); font-size: 14px; font-weight: 600; }
#dlErr:empty { display: none; }
@media (max-width: 560px) { .dl .inline { flex-direction: column; } }
.install-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.how { max-width: 620px; margin: 22px auto 0; }
.how ol { margin: 12px 0 0; padding-left: 22px; color: var(--ink-2); }
.how li { margin: 6px 0; }
.mine { margin: 24px auto 0; text-align: center; color: var(--ink-2); }
.mine code { color: var(--ink); background: var(--marker-soft); }

/* ---- perguntas ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line-2); }
summary { padding: 20px 4px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--ink); font-size: 24px; font-weight: 500; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 4px 20px; color: var(--ink-2); }
.how summary { padding: 10px 0; }
.how { border: 0; }

/* ---- páginas de texto (termos, privacidade) e ativação ---- */
.doc { max-width: 720px; padding-top: 24px; padding-bottom: 72px; }
.doc h1 { margin-bottom: 16px; font-size: 44px; }
.doc h2 { margin: 34px 0 8px; font-size: 22px; text-align: left; }
.doc p { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc b { color: var(--ink); }
.center { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; }
.center .sub + .sub { margin-top: 24px; }

footer { padding: 36px 20px 48px; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; text-align: center; }
footer p + p { margin-top: 8px; }
footer a { color: var(--ink-2); }

/* ---- checkout ---- */
dialog {
	width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
	padding: 30px 24px 24px;
	border: 1px solid var(--line-2); border-radius: 20px;
	background: var(--paper); color: var(--ink);
	box-shadow: 0 30px 80px -24px rgba(23, 21, 15, .4);
}
dialog::backdrop { background: rgba(23, 21, 15, .45); backdrop-filter: blur(2px); }
dialog h2 { margin-bottom: 18px; font-size: 28px; text-align: left; }
.close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.close:hover { background: var(--line); }

label, legend { display: block; margin: 14px 0 6px; padding: 0; color: var(--ink-2); font-size: 14px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input:not([type=radio]) {
	width: 100%; min-width: 0; height: 48px; padding: 0 14px;
	border: 1.5px solid var(--line-2); border-radius: 10px;
	background: var(--card); color: var(--ink); caret-color: var(--ink);
	font: inherit; font-size: 16px; /* 16px: o iPhone não dá zoom ao focar */
}
input:not([type=radio]):focus { border-color: var(--ink); outline: none; }
input:not([type=radio]):focus-visible { outline: 2px solid var(--marker); outline-offset: 0; }
input::placeholder { color: #8f887a; }
input[readonly] { color: var(--ink-2); font: 13px ui-monospace, Consolas, monospace; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.choice legend { margin-top: 0; }
.choice label { position: relative; margin: 0; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--ink); font-variant-numeric: tabular-nums; }
.choice b { display: block; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.choice input:checked + span { border-color: var(--ink); background: var(--marker-soft); }
.choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
#buy .btn { margin-top: 18px; }
.hint { margin-top: 10px; color: var(--muted); font-size: 13px; }
#err { margin-top: 12px; color: var(--del); font-size: 14px; font-weight: 600; }
#err:empty { display: none; }

#qr { display: block; margin: 0 auto 6px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.inline { display: flex; gap: 8px; }
.wait { display: flex; gap: 10px; margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.spin { flex: none; width: 16px; height: 16px; margin-top: 3px; border: 2px solid var(--line-2); border-top-color: var(--ink); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.key { margin: 8px 0 16px; padding: 14px; border: 1.5px dashed var(--ink); border-radius: 12px; background: var(--marker-soft); font: 600 19px ui-monospace, Consolas, monospace; letter-spacing: .03em; text-align: center; word-break: break-all; user-select: all; }
.actions { display: grid; grid-template-columns: 1fr; gap: 10px; } /* lado a lado, "Enviar para meu WhatsApp" quebrava em 2 linhas */
.actions .btn { min-height: 48px; padding: 0 12px; font-size: 15px; }
#done .btn.wide { margin-top: 18px; }
/* no celular o .zip não instala: lá o caminho é mandar a chave pro WhatsApp e abrir no PC */
@media (max-width: 760px) { #goInstall { display: none; } }
#renewedOut { color: var(--ink-2); }
#activeOut { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--marker-soft); color: var(--ink); }

/* ---- página do parceiro ---- */
.partner h2 { margin-top: 40px; }
.paused { margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; background: var(--marker-soft); color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 0; }
.stats div { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stats .hi { border: 2px solid var(--ink); background: var(--marker-soft); }
.stats dt { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.stats dd { margin: 4px 0 0; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.table { overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.table th { color: var(--muted); font-size: 13px; font-weight: 600; }
.table .right { text-align: right; }

/* ---- celular ---- */
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; gap: 40px; padding: 28px 0 56px; }
	.grid3, .steps ol { grid-template-columns: 1fr; }
	section { padding: 52px 0; }
}
@media (max-width: 560px) {
	nav > a:not(.btn) { display: none; }
	.hero .btn { width: 100%; }
	.plan-grid { grid-template-columns: 1fr; }
	.lead { font-size: 17px; }
	.brand span { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
	.spin { animation: none; }
}
