* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  min-height: 100vh;
  padding: 24px;
}

/* --- Language switcher --- */

.lang-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.lang-switch a {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  color: #94a3b8;
  background: #1e293b;
  transition: background 0.15s, color 0.15s;
}

.lang-switch a:hover { background: #334155; color: #e2e8f0; }
.lang-switch a.active { background: #3b82f6; color: #fff; }

/* --- Index page --- */

.container-index {
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.container-index h1 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #1e293b;
  border-radius: 12px;
  text-decoration: none;
  color: #e2e8f0;
  transition: background 0.15s;
}

.card:hover { background: #334155; }

.card-icon {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}

.card-text h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-text p {
  font-size: 0.8rem;
  color: #94a3b8;
}

.card-arrow {
  margin-left: auto;
  color: #475569;
  font-size: 1.2rem;
}

/* --- Instruction pages --- */

.container {
  max-width: 520px;
  margin: 0 auto;
}

.back {
  display: inline-block;
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.back:hover { text-decoration: underline; }

.container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-name {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.step {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b82f6;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.step-content {
  flex: 1;
  padding-top: 4px;
}

.step-content h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.step-content code {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.download-links a {
  display: inline-block;
  padding: 8px 16px;
  background: #1e293b;
  color: #60a5fa;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s;
}

.download-links a:hover { background: #334155; }

.note {
  margin-top: 32px;
  padding: 16px;
  background: #1e293b;
  border-radius: 12px;
  border-left: 3px solid #f59e0b;
}

.note p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.note strong { color: #f59e0b; }
.note + .note { margin-top: 12px; }
.note a { color: #60a5fa; }
