/* ============================================================
   VPNXE Design System — Tutorial Page
   Frost-blue dispatch window system
   ============================================================ */

/* ---------- Tutorial Hero ---------- */
.tutorial-hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--bg-soft), transparent);
}

.tutorial-hero .kicker {
  margin-bottom: 20px;
}

.tutorial-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 16px;
}

.tutorial-hero .hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 24px;
}

.tutorial-hero .cta-row {
  margin: 0 0 16px;
}

.tutorial-hero .trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.tutorial-hero .trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tutorial-hero .trust b {
  color: var(--success);
  font-weight: 800;
}

/* ---------- TOC Inner ---------- */
.toc-tabs .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}

.toc-tabs .wrap::-webkit-scrollbar {
  display: none;
}

.toc-tabs .wrap a {
  flex: none;
}

/* ---------- Tutorial Body ---------- */
.tutorial-body {
  padding: 40px 0 64px;
}

.tutorial-body .callout {
  margin: 0 0 32px;
}

/* ---------- Step Flow ---------- */
.step-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 32px;
  transition: border-color .15s, box-shadow .15s;
}

.step-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
  text-align: center;
  padding-top: 4px;
}

.step-body {
  min-width: 0;
}

.step-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 10px;
}

.step-body p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body strong {
  color: var(--text);
  font-weight: 800;
}

.step-body a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-tint2);
  text-underline-offset: 3px;
  transition: text-decoration-color .15s;
}

.step-body a:hover {
  text-decoration-color: var(--accent);
}

.step-body code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 12.5px;
  color: var(--text);
}

/* ---------- Platform Note ---------- */
.platform-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0;
}

.platform-note svg {
  width: 18px;
  height: 18px;
  color: var(--accent-dark);
  flex: none;
}

/* ---------- Code Sample ---------- */
.code-sample {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
  padding: 12px 16px;
  margin: 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text);
}

/* ---------- Step Body Ordered List ---------- */
.step-body ol {
  counter-reset: step-counter;
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
}

.step-body ol li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.step-body ol li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--panel2);
  border-top: 1px solid var(--border);
  padding: 64px 0;
}

.cta-band-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cta-band p {
  color: var(--muted);
  font-size: 15px;
}

.cta-band .cta-row {
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .tutorial-hero {
    padding: 40px 0 32px;
  }

  .tutorial-hero h1 {
    font-size: 30px;
  }

  .step-card {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px;
  }

  .step-num {
    text-align: left;
    font-size: 32px;
  }

  .cta-band {
    padding: 48px 0;
  }

  .cta-band-in {
    flex-direction: column;
    align-items: flex-start;
  }
}