:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #5b6470;
  --accent: #2f6fb2;
  --accent-text: #ffffff;
  --border: #d5d9df;
  --warn-bg: #fff6e5;
  --warn-border: #e6b450;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161c;
    --surface: #1b212a;
    --text: #e6e9ee;
    --muted: #9aa4b2;
    --accent: #5b9be0;
    --accent-text: #0b1220;
    --border: #2c3542;
    --warn-bg: #2a2416;
    --warn-border: #8a6d2a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header { border-bottom: 1px solid var(--border); background: var(--surface); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.3rem; text-decoration: none; color: var(--text); }
nav a { margin-left: 18px; text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--text); }
.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px; background: var(--accent); color: var(--accent-text);
  text-decoration: none; font-weight: 600; margin: 8px 12px 0 0;
}
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
section { padding: 32px 0; }
h2 { font-size: 1.6rem; margin: 0 0 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.price { font-size: 2rem; font-weight: 700; margin: 8px 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 16px 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); display: grid; place-items: center; font-weight: 700;
}
.notice { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 10px; padding: 16px 20px; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }
footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 0.9rem; margin-top: 32px; }
footer a { margin-right: 16px; }
.legal h2 { margin-top: 32px; }
.checkout { max-width: 520px; margin-bottom: 16px; }
.checkout label { display: block; font-weight: 600; margin: 12px 0 4px; }
.checkout input, .checkout select, .checkout textarea {
  width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit;
}
.checkout textarea { font-family: Consolas, monospace; font-size: 0.85rem; resize: vertical; word-break: break-all; }
.checkout button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.checkout button:disabled { opacity: 0.6; cursor: wait; }
.checkout img { display: block; margin: 12px 0; background: #fff; padding: 8px; border-radius: 8px; max-width: 100%; height: auto; }
.checkout-status { min-height: 1.6em; margin: 12px 0 0; font-weight: 600; }
.checkout-status.ok { color: #2e8b57; }
.checkout-status.error { color: #c0392b; }
/* Área do cliente (conta.html) */
.nav-button { margin-left: 18px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.nav-button:hover { color: var(--text); }
.account-licenses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 16px; }
.account-license p { margin: 4px 0; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.account-actions button, #renew button, #account-export { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.account-actions .button.secondary, #renew .button.secondary, #account-export { border: 1px solid var(--accent); }
.account-actions button:disabled { opacity: 0.6; cursor: not-allowed; }
.badge { display: inline-block; font-size: 0.8rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; vertical-align: middle; }
.badge.on { background: #2e8b57; color: #fff; }
.badge.off { background: var(--border); color: var(--text); }
.button.danger { background: #c0392b; color: #fff; }
.account-table { overflow-x: auto; }
.account-table table { border-collapse: collapse; width: 100%; min-width: 420px; }
.account-table th, .account-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); }
@media (max-width: 600px) {
  nav a, .nav-button { margin: 0 14px 0 0; }
  .hero { padding: 40px 0 24px; }
}
