/* ============================================
   STATIC PAGES — FAQ, Tutorial, ToS, 404
   ============================================ */

.sp-body {
  background: #0a0a0a;
  color: #e8e8e8;
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Nav ---- */
.sp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sp-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.sp-nav-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sp-nav-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ---- Buttons ---- */
.sp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.sp-btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

.sp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s;
  cursor: pointer;
}
.sp-btn-ghost:hover { background: rgba(255,255,255,0.07); color: #fff; }

.sp-btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---- Container ---- */
.sp-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

/* ---- Page header ---- */
.sp-page-header {
  text-align: center;
  margin-bottom: 56px;
}

.sp-page-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.sp-page-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}

.sp-page-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
}

/* ---- FAQ ---- */
.sp-faq-list { display: flex; flex-direction: column; gap: 40px; }

.sp-faq-group-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.sp-faq-item {
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.02);
  transition: border-color 0.2s;
}

.sp-faq-item.open { border-color: rgba(255,255,255,0.14); }

.sp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
}
.sp-faq-q:hover { background: rgba(255,255,255,0.03); }

.sp-faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  transition: all 0.25s;
  line-height: 1;
}

.sp-faq-item.open .sp-faq-icon {
  content: '−';
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: rotate(45deg);
}

.sp-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.sp-faq-item.open .sp-faq-a {
  max-height: 400px;
  padding: 4px 20px 18px;
}

.sp-faq-a a { color: rgba(255,255,255,0.75); text-decoration: underline; }

/* ---- CTA Bar ---- */
.sp-cta-bar {
  margin-top: 64px;
  padding: 40px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.sp-cta-bar p {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

/* ---- Prose (ToS) ---- */
.sp-prose-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-prose-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 32px 0 10px;
}

.sp-prose-body p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin: 0 0 12px;
}

.sp-prose-body ul, .sp-prose-body ol {
  padding-left: 20px;
  margin: 0 0 14px;
}

.sp-prose-body li {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 6px;
}

.sp-prose-body a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
}

.sp-disclaimer-box {
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14px;
  color: rgba(255, 200, 80, 0.9);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ---- Tutorial Steps ---- */
.sp-steps { display: flex; flex-direction: column; gap: 0; }

.sp-step {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.sp-step:last-child { border-bottom: none; }

.sp-step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-top: 2px;
}

.sp-step-body { flex: 1; }

.sp-step-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.sp-step-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 14px;
}

.sp-step-list {
  padding-left: 18px;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-step-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.sp-step-tip {
  background: rgba(0, 122, 255, 0.08);
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(180, 210, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 14px;
}

.sp-step-action {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.sp-step-action:hover { color: #fff; }

.sp-step-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.sp-step-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
}

.sp-step-card-icon { font-size: 20px; margin-bottom: 8px; }

.sp-step-card strong {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 4px;
}

.sp-step-card p { margin: 0; font-size: 13px; }

.sp-step-card code {
  background: rgba(255,255,255,0.08);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
}

code {
  background: rgba(255,255,255,0.08);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.75);
}

/* ---- Tips section ---- */
.sp-tips-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.sp-tips-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.sp-tips-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sp-tip-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sp-tip-icon { font-size: 22px; }

.sp-tip-card strong {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.01em;
}

.sp-tip-card p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  margin: 0;
}

/* ---- 404 ---- */
.sp-404-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}

.sp-404-code {
  font-size: clamp(80px, 15vw, 140px);
  font-weight: 800;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}

.sp-404-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.sp-404-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  max-width: 400px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.sp-404-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Footer ---- */
.sp-footer {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 28px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.sp-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.sp-footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.sp-footer-links a:hover { color: rgba(255,255,255,0.7); }

.sp-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sp-nav { padding: 14px 20px; }
  .sp-container { padding: 40px 20px 60px; }
  .sp-step { flex-direction: column; gap: 12px; }
  .sp-step-num { width: 32px; height: 32px; font-size: 14px; }
  .sp-tips-grid { grid-template-columns: 1fr; }
  .sp-step-cards { grid-template-columns: 1fr; }
  .sp-footer { padding: 24px 20px; }
  .sp-cta-bar { padding: 28px 20px; }
  .sp-404-btns { flex-direction: column; align-items: center; }
}
