/* WinBoost: escuro, grafite, vermelho da marca (#E11D2E), igual ao app. */
:root {
  --bg: #111113;
  --surface: #1b1b1e;
  --surface-2: #242428;
  --border: #303036;
  --text: #f2f2f3;
  --muted: #a5a5ad;
  --brand: #e11d2e;
  --brand-hover: #f03443;
  --ok: #4caf50;
  --warn: #f2c94c;
  --radius: 10px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

a { color: var(--text); }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
header .logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
header .logo img { width: 28px; height: 28px; }
header nav { display: flex; gap: 16px; align-items: center; }
header nav a { text-decoration: none; color: var(--muted); }
header nav a:hover { color: var(--text); }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 40px 24px; }
main.narrow { max-width: 440px; }

h1 { font-size: 30px; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 20px; margin: 0 0 12px; }
p.lead { color: var(--muted); margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

label { display: block; font-size: 14px; color: var(--muted); margin: 14px 0 6px; }
input {
  width: 100%;
  padding: 11px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
}
input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.gift { display: flex; gap: 10px; margin-top: 14px; }
.gift input { font-family: Consolas, "Cascadia Mono", monospace; text-transform: uppercase; letter-spacing: 1px; }
.gift button { flex: none; }
@media (max-width: 520px) { .gift { flex-direction: column; } }
input.code { font: 600 28px/1.2 Consolas, "Cascadia Mono", monospace; letter-spacing: 3px; text-align: center; text-transform: uppercase; }

button, .button {
  display: inline-block;
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: 600 15px/1.2 inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { border-color: #4a4a52; }
button.primary, .button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, .button.primary:hover { background: var(--brand-hover); }
button:disabled { opacity: .55; cursor: default; }
button.link { background: none; border: none; padding: 0; color: var(--muted); font-weight: 400; text-decoration: underline; }
p.links { margin: 16px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.full { width: 100%; }

.notice { border-radius: 8px; padding: 12px 14px; margin: 16px 0; border: 1px solid var(--border); background: var(--surface-2); }
.notice.ok { border-color: var(--ok); }
.notice.warn { border-color: var(--warn); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0 12px; }
.plan-option { border: 1px solid var(--border); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.plan-option.highlight { border-color: var(--brand); }
.plan-option .price { font-size: 24px; font-weight: 700; }
.tag { font-size: 12px; font-weight: 600; color: #fff; background: var(--brand); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }

.devices { list-style: none; padding: 0; margin: 0; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.devices li:first-child { border-top: none; }

footer { padding: 24px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
footer a { color: var(--muted); }

[hidden] { display: none !important; }

/* Páginas legais (Termos, Privacidade). */
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal .card h2 { margin-top: 0; }
.legal ul { padding-left: 22px; }
.legal li { margin: 4px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 12px; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--surface-2); }
.legal code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: 14px; }
.legal .fill { background: #5a4a10; color: var(--warn); padding: 0 4px; border-radius: 4px; }
@media (max-width: 600px) { .legal table { font-size: 13px; } .legal th, .legal td { padding: 6px; } }

/* Página de download. */
.download { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.download h2 { margin-bottom: 4px; }
.download p { margin: 0; }
.button[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.legal ol.steps { padding-left: 22px; }
.legal ol.steps li { margin: 8px 0; }
.legal pre { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; overflow-x: auto; font-size: 13px; }
.legal pre code { background: none; padding: 0; }
.legal .break { word-break: break-all; }
details.card summary { cursor: pointer; }

/* Campo de senha com o botão de ver a senha */
.password-field { position: relative; }
.password-field input { padding-right: 46px; }
.reveal-password {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  background: none; border: none; border-radius: 6px; color: var(--muted);
}
.reveal-password:hover { color: var(--text); background: var(--surface); }
.reveal-password:focus-visible { outline: 2px solid var(--brand); }
.password-rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.password-rules li::before { content: "○"; display: inline-block; width: 18px; }
.password-rules li.ok { color: var(--ok); }
.password-rules li.ok::before { content: "✓"; }

/* Teste grátis (Minha conta) */
.trial { border: 1px solid var(--brand); border-radius: 8px; padding: 16px; margin: 16px 0 4px; background: var(--surface-2); }
.trial-title { font-size: 17px; }
.trial-step label { margin-top: 10px; }
.trial-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.trial-row input { flex: 1 1 200px; width: auto; }
.trial-row .full { flex: 1 1 200px; }
