/* ============================================================
   tutorial.css — tema "neon green terminal"
   Accent: rgb(83 252 24)  ·  compartilhado por index + player
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #000000;
  --bg-2: #080808;
  --card: #0a0a0a;
  --card-2: #101010;
  --border: #1a1a1a;
  --border-strong: #262626;
  --fg: #eaf2e6;
  --muted: #8c948a;
  --muted-2: #5e655c;
  --faint: #333;

  --accent: #53fc18;
  --accent-2: #3bd60a;
  --accent-soft: rgba(83, 252, 24, .10);
  --accent-line: rgba(83, 252, 24, .26);
  --accent-glow: rgba(83, 252, 24, .35);

  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 16px;

  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--accent); color: #06120a; }

/* ---------- Shared components ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 9999px;
  padding: 5px 13px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: #b6f59a;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .45; } }

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

.kbd {
  display: inline-flex;
  align-items: center;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 12px;
  font-family: var(--mono);
  color: #cfe0c6;
}

.tip {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.tip strong { color: #cfe0c6; font-weight: 600; }

.divider { width: 100%; height: 1px; background: var(--border); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  height: 42px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .08s, box-shadow .2s, background .15s, border-color .15s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #06120a;
}
.btn-primary:hover { background: #62ff2c; }
.btn-secondary { background: var(--border); color: var(--fg); }
.btn-secondary:hover { background: var(--border-strong); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--fg); }
.btn-ghost:hover { border-color: var(--accent-line); color: #cdebbf; background: var(--accent-soft); }

/* ============================================================
   LANDING PAGE (index.html)
   ============================================================ */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* Navbar — capsule flutuante + linha neon no topo */
.nav {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 18px 32px 0;
}
.nav::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  z-index: 60;
  pointer-events: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 10px 0 16px;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #06120a;
}
.brand .accent { color: var(--accent); }
.brand .brand-tail { color: var(--muted-2); font-weight: 500; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a:not(.nav-cta) {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color .15s;
}
/* underline animado nos links */
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--fg); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta {
  height: 38px;
  padding: 0 18px;
  font-size: 14px;
  margin-left: 12px;
}

/* Hero */
.hero {
  position: relative;
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(620px 320px at 20% 25%, #000 0%, transparent 75%);
          mask-image: radial-gradient(620px 320px at 20% 25%, #000 0%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(34px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin: 24px 0 18px;
  max-width: 720px;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero p {
  color: var(--muted);
  font-size: 17.5px;
  max-width: 560px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.hero-actions .btn { height: 48px; padding: 0 22px; font-size: 15px; }

/* Section heading */
.section { padding: 64px 0; }
.section-head { margin-bottom: 32px; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}
.section-head p { color: var(--muted); font-size: 16px; max-width: 580px; }

/* Tabs (segmented control) */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 32px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .2s;
}
.tab:hover { color: var(--fg); }
.tab.active {
  background: var(--accent);
  color: #06120a;
}

/* Panels */
.panel { display: none; }
.panel.active {
  display: grid;
  gap: 36px;
  align-items: center;
  animation: fade .35s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
@media (min-width: 880px) {
  .panel.pc { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .panel.mobile { grid-template-columns: auto minmax(0, 1fr); }
}

/* Device: browser window (PC) */
.browser {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 7px; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.browser-dots span:nth-child(3) { background: var(--accent); }
.browser-url {
  flex: 1;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 11px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted-2);
}
.browser video { display: block; width: 100%; height: auto; background: #000; }

/* Device: phone (mobile) */
.phone {
  position: relative;
  width: fit-content;
  margin: 0 auto;
  padding: 10px;
  border-radius: 40px;
  background: #060606;
  border: 1px solid var(--border-strong);
}
.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 5px;
  border-radius: 4px;
  background: #000;
  z-index: 2;
}
.phone video {
  display: block;
  height: 540px;
  width: auto;
  border-radius: 30px;
  background: #000;
}

/* Panel info column */
.panel-info h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.panel-info .lead { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; line-height: 1.6; }

.steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.steps li { display: flex; gap: 13px; align-items: flex-start; }
.steps .n {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.steps .t { font-size: 14px; color: #d4ddcd; line-height: 1.55; padding-top: 2px; }
.steps .t b { color: var(--fg); }

/* Support note */
.support {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.55;
}
.support + .support { margin-top: 9px; }
.support svg { flex-shrink: 0; margin-top: 1px; }
.support.ok {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: #c3f2af;
}
.support.ok b { color: var(--accent); }
.support.warn {
  background: rgba(234, 179, 8, .07);
  border: 1px solid rgba(234, 179, 8, .22);
  color: #f1e3a0;
}
.support.warn b { color: #facc15; }

/* Extra tips */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tip-card { transition: border-color .15s, transform .15s; }
.tip-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.tip-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tip-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.tip-card b { color: #cfe0c6; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 30px 0; }
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--muted-2);
}
.site-footer .accent { color: var(--accent); }

/* ============================================================
   INSTALL PAGE (install.html)
   ============================================================ */
.install-page { display: flex; flex-direction: column; align-items: center; padding: 64px 16px; }
.install-page h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-align: center;
  line-height: 1.1;
  margin: 24px 0 12px;
}
.install-page .subtitle {
  color: var(--muted);
  font-size: 16px;
  text-align: center;
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 44px;
}
.install-page .card { width: 100%; max-width: 520px; margin-bottom: 12px; }

.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.step-number {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.step-title { font-size: 15px; font-weight: 700; color: var(--fg); }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

.drag-area { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 20px; }
.bookmarklet-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #06120a;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: grab;
  user-select: none;
  transition: background .2s, transform .1s;
}
.bookmarklet-btn:hover { background: #62ff2c; transform: translateY(-1px); }
.bookmarklet-btn:active { cursor: grabbing; transform: scale(.98); }
.drag-hint { font-size: 12px; color: var(--muted-2); }

.install-page .tip { margin-top: 14px; }
.install-page .divider { max-width: 520px; margin: 12px 0 16px; }
.install-page footer { margin-top: 40px; font-size: 13px; color: var(--faint); }

/* Modal (mobile copy) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.modal-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }
.code-box {
  width: 100%;
  height: 110px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: #cfe0c6;
  resize: none;
  word-break: break-all;
  line-height: 1.5;
}
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1; height: 44px; }
.modal-steps {
  list-style: none;
  margin-top: 16px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.modal-steps li { margin-bottom: 4px; }
.modal-steps b { color: var(--accent); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .container { padding: 0 26px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { margin-left: 0; }
  .brand-tail { display: none; }
  .brand { font-size: 14px; }
  .nav { top: 10px; padding: 12px 20px 0; }
  .nav-inner { height: 54px; padding: 0 8px 0 14px; }
  .tips-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 44px; }
  .hero-actions .btn { flex: 1; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 0 10px; }
  .phone video { height: 460px; }
}
