/* =========================================================================
   VPNAJ · tutorial.css
   Page layer for the quickstart tutorial: split hero, five-step route card,
   step rhythm inside .steps, compact fact tables, closing link panels.
   Every colour / radius / shadow is referenced from the base.css token set.
   ========================================================================= */

/* =========================================================================
   Hero
   ========================================================================= */

.tut-hero{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);
  gap:clamp(24px,4vw,52px);
  align-items:start;
}

.tut-hero-text{min-width:0}
.tut-hero-text .kicker{
  display:flex;
  width:max-content;
  max-width:100%;
  margin-bottom:var(--sp-3);
}
.tut-hero-text .lede{
  margin:var(--sp-4) 0 0;
  max-width:56ch;
}
.tut-hero-text .callout{margin-top:var(--sp-5)}

/* ── five-step route card ─────────────────────────────────────────── */

.tut-route{
  position:relative;
  min-width:0;
  padding:clamp(18px,2.6vw,26px);
  border-radius:var(--r-card);
  background:var(--bg-panel);
  box-shadow:inset 0 0 0 1px var(--border), var(--lift-card);
}
.tut-route-title{
  margin:0 0 var(--sp-4);
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.tut-route-list{
  position:relative;
  margin-left:13px;
  padding-block:2px;
  border-left:1px dashed var(--border);
}
.tut-route-list li{position:relative;min-width:0}
.tut-route-list a{
  position:relative;
  display:block;
  padding:9px 0 9px 24px;
  border-radius:var(--r-chip);
}
.tut-route-idx{
  position:absolute;
  left:-13px;
  top:11px;
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:var(--bg-panel);
  box-shadow:inset 0 0 0 1px var(--border);
  font-family:var(--font-mono);
  font-size:10px;
  letter-spacing:.02em;
  color:var(--accent-dark);
}
.tut-route-name{
  display:block;
  font-size:14px;
  font-weight:600;
  line-height:1.5;
  color:var(--text);
  transition:color .18s ease;
}
.tut-route-note{
  display:block;
  font-size:12px;
  line-height:1.55;
  color:var(--text-muted);
}
.tut-route-list a:hover .tut-route-name{color:var(--accent-dark)}

/* =========================================================================
   Steps
   ========================================================================= */

.tut-steps{margin-top:clamp(28px,4vw,44px)}
.tut-steps .step[id]{scroll-margin-top:calc(var(--head-h) + 92px)}
.tut-steps .step h2{
  font-size:clamp(21px,2.6vw,27px);
  line-height:1.28;
  margin-bottom:10px;
}
.tut-steps .step p{
  font-size:15px;
  line-height:1.88;
}
.tut-steps .step p + p{margin-top:12px}
.tut-steps .step h3{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:26px;
}
.tut-steps .step h3 .pi{
  width:17px;
  height:17px;
  flex:none;
  color:var(--text-muted);
}
.tut-steps .step .callout{margin-top:16px}
.tut-steps .step .table-scroll{margin-top:18px}
.tut-steps .step .chip-row{margin-top:12px}

.tut-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  margin-top:18px;
}

.tut-note{
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.03em;
  color:var(--text-muted);
}
.tut-steps .step .tut-note{
  margin-top:8px;
  font-size:11.5px;
  line-height:1.6;
}

/* =========================================================================
   Compact tables
   ========================================================================= */

.tut-table{
  width:100%;
  min-width:520px;
  border-collapse:collapse;
  font-size:13.5px;
}
.tut-table caption{
  caption-side:top;
  padding:14px 16px 6px;
  text-align:left;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-muted);
}
.tut-table th{
  padding:10px 16px;
  text-align:left;
  font-size:12px;
  font-weight:600;
  letter-spacing:.03em;
  color:var(--text);
  white-space:nowrap;
  background:var(--bg-panel-2);
  border-bottom:1px solid var(--border);
}
.tut-table td{
  padding:10px 16px;
  color:var(--text-muted);
  border-bottom:1px solid var(--ink-07);
  word-break:keep-all;
  vertical-align:middle;
}
.tut-table tr:last-child td{border-bottom:0}
.tut-table tbody tr:hover td{background:var(--accent-06)}
.tut-table .cell-strong{
  color:var(--text);
  font-weight:600;
  white-space:nowrap;
}
.tut-table .cell-mono{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.01em;
  color:var(--text);
  white-space:nowrap;
}

/* =========================================================================
   Closing section
   ========================================================================= */

.tut-next{margin-top:clamp(36px,5vw,64px)}
.tut-next h2{margin-bottom:10px}
.tut-next-lede{
  max-width:62ch;
  font-size:15px;
  line-height:1.85;
  color:var(--text-muted);
}
.tut-next .grid-cards{margin-top:var(--sp-5)}
.tut-next .panel{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.tut-next .panel h3{font-size:18px}
.tut-next .panel p{
  font-size:13.5px;
  line-height:1.75;
}
.tut-next .panel .btn{
  margin-top:auto;
  align-self:flex-start;
}
.tut-next .cta-row{margin-top:var(--sp-6)}

/* =========================================================================
   Responsive
   ========================================================================= */

@media (max-width:900px){
  .tut-hero{grid-template-columns:1fr}
  .tut-route{max-width:520px}
}

@media (max-width:640px){
  .tut-steps .step{padding-left:32px}
  .tut-steps .step h2{font-size:19px}
  .tut-steps .step p{font-size:14.5px;line-height:1.85}
  .tut-steps .step h3{margin-top:22px}
  .tut-actions .btn{width:100%}
  .tut-next .cta-row .btn{width:100%}
  .tut-table{min-width:480px}
  .tut-table th,
  .tut-table td{padding:9px 12px}
}