/* tutorial.css — visual sóbrio, alinhado à home */

:root {
  --bg: #0b0c0f;
  --surface: #14161b;
  --surface-2: #1a1d23;
  --border: #23262e;
  --border-soft: #1c1f26;
  --fg: #eceef2;
  --muted: #9aa0ab;
  --muted-2: #6b7280;
  --accent: #53fc18;
  --accent-soft: rgba(83, 252, 24, .1);
  --accent-line: rgba(83, 252, 24, .28);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
b { color: var(--fg); font-weight: 600; }
.accent { color: var(--accent); }

/* ---------- Barra superior ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  background: rgba(11, 12, 15, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: #0b0c0f;
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.brand-name .dot { color: var(--muted-2); font-weight: 500; }

.lang { display: flex; gap: 4px; }
.lang button {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s, border-color .15s;
}
.lang button:hover { color: var(--fg); background: var(--surface); }
.lang button.active { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---------- Layout ---------- */
main { max-width: 1200px; margin: 0 auto; padding: 20px 24px 56px; }

/* ---------- Cabeçalho ---------- */
.hero {
  text-align: center;
  padding: 64px 0 60px;
  margin-bottom: 20px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 9999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: #b6f59a;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 6vw, 50px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero p { color: var(--muted); font-size: 17px; max-width: 500px; margin: 0 auto 30px; }
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0b0c0f;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 24px;
  border-radius: 9px;
  transition: background .15s, border-color .15s, color .15s, transform .08s;
}
.btn:hover { background: #62ff2c; }
.btn:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--accent-line); color: var(--accent); }

/* ---------- Seções ---------- */
section + section { margin-top: 56px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }

/* Abas */
.tabs {
  display: inline-flex;
  gap: 3px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  border: none;
  border-radius: 7px;
  padding: 8px 15px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, background .15s;
}
.tab:hover { color: var(--fg); }
.tab.active { color: #0b0c0f; background: var(--accent); }

/* ---------- Painéis ---------- */
.panel { display: none; }
.panel.active {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  animation: fade .3s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* Moldura de janela (desktop) */
.window {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.window-bar span:nth-child(3) { background: var(--accent-line); }
.window video { display: block; width: 100%; background: #000; }

/* Moldura de celular (mobile) */
.phone {
  width: 208px;
  max-width: 100%;
  margin: 0 auto;
  padding: 8px;
  border-radius: 28px;
  background: #060606;
  border: 1px solid #2b2f38;
}
.phone video.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 22px;
  background: #000;
}

/* Passos */
.steps { list-style: none; display: flex; flex-direction: column; gap: 15px; margin-bottom: 20px; }
.steps li { display: flex; gap: 13px; align-items: flex-start; font-size: 14.5px; color: var(--muted); }
.steps li > span:last-child { padding-top: 3px; line-height: 1.5; }
.steps .n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.kbd {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: var(--fg);
}

/* Notas de suporte */
.note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  padding: 11px 13px;
  border-radius: 9px;
}
.note svg { flex-shrink: 0; margin-top: 2px; }
.note.ok { background: var(--accent-soft); border: 1px solid var(--accent-line); color: #c3f2af; }
.note.ok svg { color: var(--accent); }
.note.warn { background: rgba(234, 179, 8, .08); border: 1px solid rgba(234, 179, 8, .24); color: #e6d68a; }
.note.warn svg { color: #eab308; }
.note + .note { margin-top: 9px; }
.panel-cta { margin-top: 18px; }

/* ---------- Dicas ---------- */
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .15s, transform .15s;
}
.tip-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tip-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  margin-bottom: 15px;
}
.tip-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.tip-card p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- CTA final ---------- */
.cta {
  text-align: center;
  padding: 40px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.cta h2 { margin-bottom: 8px; }
.cta p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--muted-2);
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .topbar { padding: 0 18px; }
  main { padding: 12px 18px 44px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 30px; }
  .section-head { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; }
  .panel.active { grid-template-columns: 1fr; padding: 18px; gap: 22px; }
  .tips { grid-template-columns: 1fr; }
}
