/* Tutorial page — inherits tokens from styles.css, doc scaffolding from doc.css. */

.tut { max-width: 980px; margin: 0 auto; padding: 3.5rem 24px 5rem; }
.tut-intro { color: var(--dim); max-width: 38em; }
.tut-intro + .tut-intro { margin-top: .8rem; }

.tut h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: .4rem; }
.tut h1 em { font-style: normal; color: var(--teal-bright); }

/* On-this-page chips */
.tut-toc {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem;
}
.tut-toc a {
  display: inline-flex; padding: .45rem 1rem; border-radius: 999px;
  border: 1px solid var(--glass-brd); background: var(--glass);
  font-family: var(--display); font-size: .82rem; font-weight: 500; color: var(--dim);
  transition: color .2s ease, border-color .2s ease;
}
.tut-toc a:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }

/* Numbered section rows: copy beside a phone shot */
.tut-section { margin-top: clamp(3.5rem, 8vw, 5.5rem); scroll-margin-top: 90px; }
.tut-section > .kicker { margin-bottom: .5rem; }
.tut-section h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin-bottom: 1rem; }
.tut-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.tut-row-flip { grid-template-columns: .85fr 1.15fr; }
.tut-row-flip .tut-copy { order: 2; }
.tut-copy p { color: var(--dim); max-width: 36em; }
.tut-copy p + p { margin-top: .9rem; }
.tut-copy strong { color: var(--ink); font-weight: 500; }
.tut-media { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.tut-media figcaption {
  margin-top: 1rem; max-width: 230px; font-size: .85rem;
  color: var(--dim); line-height: 1.5; text-align: center;
}

/* Checklist / numbered how-to inside a section */
.tut-list { list-style: none; counter-reset: tut; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.tut-list li {
  counter-increment: tut;
  position: relative; padding: .9rem 1.1rem .9rem 3.1rem; border-radius: 16px;
  border: 1px solid var(--glass-brd); background: var(--glass);
  font-size: .92rem; color: var(--dim); line-height: 1.55;
}
.tut-list li::before {
  content: counter(tut);
  position: absolute; left: .95rem; top: .95rem;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #06222b;
  font-family: var(--display); font-weight: 700; font-size: .82rem;
}
.tut-list strong { display: block; color: var(--ink); font-weight: 500; }

/* Plain bullet variant */
.tut-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.tut-points li {
  padding: .8rem 1.1rem; border-radius: 16px;
  border: 1px solid var(--glass-brd); background: var(--glass);
  font-size: .92rem; color: var(--dim); line-height: 1.55;
}
.tut-points strong {
  font-family: var(--display); font-weight: 600; color: var(--ink);
  display: block; margin-bottom: .15rem; font-size: .95rem;
}

/* Watch photos */
.tut-watch { position: relative; max-width: 420px; }
.tut-watch .tut-photo {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--glass-brd);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}
.tut-watch .tut-face {
  position: absolute; right: -18px; bottom: -28px;
  width: clamp(100px, 34%, 150px); border-radius: 20px;
  border: 1px solid var(--glass-brd); background: #fff;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
}

/* FAQ */
.tut-faq { display: grid; gap: .9rem; margin-top: 1.6rem; }
.tut-faq details {
  border: 1px solid var(--glass-brd); background: var(--glass);
  border-radius: 18px; padding: 1rem 1.3rem;
}
.tut-faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 600; font-size: .98rem; color: var(--ink);
}
.tut-faq summary::-webkit-details-marker { display: none; }
.tut-faq summary::after { content: '+'; float: right; color: var(--teal); font-weight: 400; }
.tut-faq details[open] summary::after { content: '–'; }
.tut-faq details p { margin-top: .7rem; font-size: .92rem; color: var(--dim); }

/* Closing note */
.tut-note {
  margin-top: clamp(3.5rem, 8vw, 5rem); padding: 1.4rem 1.6rem; border-radius: 18px;
  border: 1px solid rgba(227,189,122,.3); background: rgba(227,189,122,.07);
  font-size: .9rem; color: var(--dim);
}
.tut-note a { color: var(--teal-bright); }
.tut-note a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .tut-row, .tut-row-flip { grid-template-columns: 1fr; gap: 2rem; }
  .tut-row-flip .tut-copy { order: 0; }
  .tut-media { margin-top: .5rem; }
}
