/* /tutorial only (site.css holds the shared look; .feat / .ticks / .shot come from there): the video at the top, a list of
   the sections, one section per feature with a screenshot, and the keyboard list. Same black, blue and Inter as the site. */
.tut-hero { padding: 72px 0 0; }
.tut-hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.045em; line-height: 1.04; max-width: 16ch; }
.tut-hero .lead { color: var(--h-muted); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; max-width: 62ch; margin-top: 18px; }

/* the video (also used on the landing page: .vid lives in landing.css there) */
.tut-vid { position: relative; margin-top: 40px; border: 1px solid var(--h-line2); border-radius: 14px; overflow: hidden; background: #131722;
  aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px #000, 0 40px 120px -40px rgba(61, 139, 255, .3); }
.tut-vid video { display: block; width: 100%; height: 100%; object-fit: contain; background: #131722; }
.tut-vid + .cap { margin-top: 12px; }

/* contents */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--h-line2); border-radius: 999px;
  color: var(--h-ink2); text-decoration: none; font-size: 14px; font-weight: 500; }
.toc a:hover { border-color: var(--h-muted); color: var(--h-ink); }
.toc a:focus-visible { outline: 2px solid var(--h-blue); outline-offset: 2px; }

/* sections: text left, screenshot right (alternating on wide screens, like the pricing page's .feat rows) */
.tut .feats { margin-top: 48px; }
.tut .feat { scroll-margin-top: 76px; align-items: start; }
.tut .feat h2 { font-size: 26px; margin-top: 12px; letter-spacing: -.025em; line-height: 1.2; }
.tut .feat p { color: var(--h-muted); margin-top: 14px; }
.tut .feat p b, .tut .ticks b { color: var(--h-ink2); font-weight: 600; }
.tut .feat .shot { margin: 0; }
.tut .feat .shot + .shot { margin-top: 14px; }
.tut .feat .shot.tall { max-width: 400px; justify-self: center; width: 100%; }   /* portrait windows (new session, journal) */
.tut .feat figcaption { color: var(--h-dim); font-size: 13px; padding: 10px 14px; border-top: 1px solid var(--h-line); background: var(--h-panel2); }
.tut .ticks li { color: var(--h-muted); }
.tut .note { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-panel2);
  color: var(--h-muted); font-size: 14px; line-height: 1.55; }
.tut a { color: var(--h-blue); text-decoration: none; }
.tut a:hover { text-decoration: underline; }
.tut .btn, .tut .btn:hover { text-decoration: none; }
.tut .btn.primary { color: #fff; }

/* keys */
.tut kbd { display: inline-block; min-width: 22px; padding: 1px 7px; border: 1px solid var(--h-line2); border-bottom-width: 2px; border-radius: 6px;
  background: var(--h-panel3); color: var(--h-ink); font: 600 12.5px/1.6 var(--h-font); text-align: center; white-space: nowrap; }

/* the full keyboard list (same rows as Alt+K in the app) */
.keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.kgroup { border: 1px solid var(--h-line); border-radius: var(--h-r); background: var(--h-panel2); padding: 20px 20px 14px; min-width: 0; }
.kgroup h3 { font-size: 15px; letter-spacing: -.01em; color: var(--h-ink); }
.kgroup dl { margin: 12px 0 0; }
.kgroup .kr { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--h-line); font-size: 13.5px; }
.kgroup .kr:first-child { border-top: 0; }
.kgroup dt { flex: none; display: flex; flex-wrap: wrap; gap: 4px; max-width: 48%; }
.kgroup dd { margin: 0; color: var(--h-muted); text-align: end; }
.tut .closer { margin-top: 96px; }
.tut .closer .cta { margin-top: 28px; }

@media (max-width: 1023px) {
  .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tut .feat h2 { font-size: 23px; }
}
@media (max-width: 700px) {
  .tut-hero { padding-top: 40px; }
  .tut-vid { margin-top: 28px; border-radius: 10px; }
  .toc { margin-top: 28px; }
  .toc a { height: 40px; }
  .keys { grid-template-columns: 1fr; }
  .tut .closer { margin-top: 64px; }
}
