/* Site do PalmBench: um arquivo de estilo para todas as páginas. Sem fontes nem imagens de fora. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #15181e;
  --muted: #5c6573;
  --line: #dfe3e9;
  --accent: #5b4ef0;
  --accent-text: #ffffff;
  --accent-soft: #eceaff;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --ok: #1b8a4b;
  --ok-soft: #e4f6ec;
  --code-bg: #10131a;
  --code-text: #e8ecf4;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --surface: #171a21;
    --text: #eceff4;
    --muted: #98a2b3;
    --line: #2a2f3a;
    --accent: #8b82ff;
    --accent-text: #0e1015;
    --accent-soft: #23204a;
    --danger: #ff7a6b;
    --danger-soft: #3a1e1b;
    --ok: #55d98c;
    --ok-soft: #14301f;
    --code-bg: #0a0c11;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2, .h2 { font-size: 1.6rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 520px; }

/* Cabeçalho */
.top { border-bottom: 1px solid var(--line); background: var(--surface); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 6px; }
.top nav a { color: var(--text); text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.top nav a:hover { background: var(--accent-soft); }

main { padding: 40px 0 64px; }
footer { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--muted); font-size: .875rem; }

/* Botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.block { width: 100%; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password] {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input.code { font: 700 1.6rem/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .25em; text-align: center; text-transform: uppercase; min-height: 60px; }

/* Cartões e avisos */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card + .card { margin-top: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.msg { border-radius: 10px; padding: 12px 14px; margin: 14px 0; font-size: .95rem; }
.msg.err { background: var(--danger-soft); color: var(--danger); }
.msg.ok { background: var(--ok-soft); color: var(--ok); }
.msg.info { background: var(--accent-soft); }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; }
.flush { margin: 0; }
.mt12 { margin-top: 12px; }
.mt14 { margin-top: 14px; }
.mt24 { margin-top: 24px; }
.mt40 { margin-top: 40px; }

/* Início */
.hero { padding: 24px 0 32px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 40ch; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before {
  content: counter(s); display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; margin-bottom: 10px;
}

/* Download */
.cmd { display: flex; align-items: stretch; background: var(--code-bg); border-radius: 10px; overflow: hidden; margin: 10px 0; }
.cmd code { flex: 1; padding: 14px; color: var(--code-text); font: .9rem/1.4 ui-monospace, "SF Mono", Consolas, monospace; overflow-x: auto; white-space: nowrap; }
.cmd button { border: 0; border-left: 1px solid #2a2f3a; background: transparent; color: var(--code-text); padding: 0 16px; font: inherit; cursor: pointer; }
.cmd button:hover { background: #1b2030; }
.hash { font: .8rem/1.4 ui-monospace, Consolas, monospace; word-break: break-all; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--accent-soft); font-size: .8rem; font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }

/* Abas do login */
.tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.tabs button { flex: 1; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 6px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--text); border-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }

/* Conta */
.item { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.item:first-child { border-top: 0; }
.item .grow { flex: 1; min-width: 180px; }
.item .name { font-weight: 600; word-break: break-word; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.dot.on { background: var(--ok); }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; font-weight: 600; word-break: break-word; }
