/* =========================================================================
   VPNLW — tutorial.css
   Page layer for the five-step onboarding walkthrough (start.html).
   Only new, page-scoped classes live here; shared components stay in
   base.css / components.css.
   ========================================================================= */

/* ------------------------------------------------------- intro / headline */
.tut-intro{
  position:relative;
  overflow-x:clip;
  padding-bottom:16px;
}

.tut-glow{
  position:absolute;
  left:0;
  right:0;
  top:-70px;
  height:340px;
  max-width:100%;
  background:radial-gradient(50% 50% at 50% 50%,var(--glow) 0%,transparent 72%);
  pointer-events:none;
  z-index:-1;
}

.tut-head{
  position:relative;
  max-width:76ch;
  min-width:0;
}
.tut-head h1{
  margin:0;
  font-size:clamp(2rem,4.8vw,3.25rem);
  line-height:1.1;
  letter-spacing:-.02em;
}
.tut-head .lede{max-width:60ch}

/* the callout inside the intro sits closer to the lede */
.tut-head .callout{margin-top:18px}
.tut-head .callout p{font-size:13.5px}

.tut-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 0;
  padding:0;
  list-style:none;
  min-width:0;
}
.tut-meta li{
  display:inline-flex;
  align-items:center;
  max-width:100%;
  height:30px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:var(--radius-pill);
  background:var(--w-70);
  box-shadow:0 1px 0 var(--w-90) inset;
  font-size:12px;
  color:var(--text-muted);
  white-space:nowrap;
  overflow:hidden;
}
.tut-meta li .mono{
  font-size:11.5px;
  color:var(--accent);
  letter-spacing:.02em;
}

/* --------------------------------------------------------- steps container */
.tut-main{padding-top:10px}
.tut-body{position:relative;min-width:0}

.tut-steps{
  display:grid;
  gap:18px;
  margin-top:22px;
  min-width:0;
}

/* -------------------------------------------------------------- step card */
.step-card{
  position:relative;
  padding:24px 24px 22px;
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  background:var(--bg-panel);
  box-shadow:var(--shadow-card);
  min-width:0;
}
.step-card::before{
  content:"";
  position:absolute;
  left:24px;
  right:24px;
  top:0;
  height:2px;
  border-radius:0 0 2px 2px;
  background:var(--grad-strip);
  opacity:.92;
  pointer-events:none;
}

.step-head{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  min-width:0;
}
.step-head h2{
  margin:0;
  font-size:clamp(1.35rem,2.6vw,1.8rem);
  line-height:1.22;
  min-width:0;
}

.step-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  flex:none;
  border-radius:var(--radius-xs);
  background:var(--grad-accent);
  color:var(--on-accent);
  font-family:var(--font-mono);
  font-size:13px;
  font-weight:600;
  letter-spacing:.04em;
  box-shadow:0 1px 0 var(--w-16) inset,0 10px 20px -12px var(--accent-45);
}

.step-body{margin-top:12px;min-width:0}
.step-body p{
  margin:0 0 13px;
  font-size:14.5px;
  line-height:1.82;
  color:var(--text);
}
.step-body p:last-child{margin-bottom:0}
.step-body strong{color:var(--accent-dark);font-weight:600}

.step-body code{
  display:inline-block;
  max-width:100%;
  padding:2px 7px;
  border:1px solid var(--accent-08);
  border-radius:5px;
  background:var(--accent-06);
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--accent);
  overflow-wrap:anywhere;
  word-break:break-all;
}

.step-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

/* ------------------------------------------------ platform sub-blocks */
.plat-step{
  margin-top:16px;
  padding:16px 18px 14px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:linear-gradient(180deg,var(--accent-04),var(--bg-panel) 64%);
  min-width:0;
}
.plat-step-head{
  display:flex;
  align-items:center;
  gap:9px;
  margin-bottom:9px;
  min-width:0;
}
.plat-step-head svg{
  width:18px;
  height:18px;
  color:var(--accent);
  flex:none;
}
.plat-step-head h3{
  margin:0;
  font-family:var(--font-body);
  font-size:15px;
  font-weight:700;
  letter-spacing:0;
  line-height:1.4;
  color:var(--accent-dark);
  min-width:0;
}
.plat-step p{
  margin:0 0 10px;
  font-size:14px;
  line-height:1.78;
  color:var(--text);
}
.plat-step p:last-child{margin-bottom:0}

/* --------------------------------------------------------------- hint box */
.tut-tip{
  margin:16px 0 0;
  padding:11px 14px;
  border-left:3px solid var(--warn-30);
  border-radius:0 var(--radius-xs) var(--radius-xs) 0;
  background:var(--warn-12);
  font-size:13px;
  line-height:1.72;
  color:var(--text-muted);
}

/* ------------------------------------------------------------ next links */
.tut-next{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:22px;
}
.tut-next a{
  display:flex;
  flex-direction:column;
  gap:4px;
  padding:14px 16px;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  background:var(--bg-panel);
  box-shadow:0 1px 0 var(--w-90) inset;
  text-decoration:none;
  min-width:0;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.tut-next a:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-card);
  border-color:var(--accent-22);
}
.tut-next .k{
  font-size:11px;
  letter-spacing:.1em;
  color:var(--text-muted);
}
.tut-next .v{
  font-size:13.5px;
  font-weight:600;
  color:var(--accent-dark);
}

/* ------------------------------------------------------------ breakpoints */
@media (max-width:1080px){
  .tut-head h1{font-size:clamp(1.9rem,4.4vw,2.6rem)}
}

@media (max-width:900px){
  .tut-next{grid-template-columns:minmax(0,1fr)}
}

@media (max-width:640px){
  .tut-glow{top:-40px;height:240px}
  .step-card{padding:20px 18px 18px}
  .step-card::before{left:18px;right:18px}
  .step-num{width:34px;height:34px;font-size:12px}
  .step-body p{font-size:14px;line-height:1.78}
  .plat-step{padding:14px 14px 12px}
  .plat-step p{font-size:13.5px}
  .tut-meta li{height:28px;padding:0 10px;font-size:11.5px}
}