:root {
  --ink: #19212a;
  --muted: #637083;
  --line: #dce4ea;
  --teal: #0c4f54;
  --coral: #ef6a4f;
  --paper: #f7f4ec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: #f7f8f8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid rgba(239, 106, 79, 0.42); outline-offset: 3px; }

.tutorial-header {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(247, 244, 236, 0.94);
  border-bottom: 1px solid rgba(25, 33, 42, 0.08);
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; color: white; background: var(--teal); border-radius: 8px; }
.back-link { color: var(--teal); font-size: 0.9rem; font-weight: 800; }

main { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: clamp(52px, 7vw, 92px) 0; }
.tutorial-intro { max-width: 760px; }
.eyebrow { margin: 0 0 10px; color: var(--coral); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 13ch; margin-bottom: 20px; font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1.02; }
h2 { margin-bottom: 12px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; }
h3 { margin-bottom: 8px; font-size: 1.05rem; }
.tutorial-lead { max-width: 680px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }

.tutorial-player-shell { margin-top: 42px; }
.tutorial-player-frame {
  overflow: hidden;
  width: min(100%, 560px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #111820;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(25, 33, 42, 0.16);
}
.tutorial-player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.tutorial-video-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 36px; align-items: end; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.tutorial-video-details h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.tutorial-video-details p:not(.eyebrow) { max-width: 680px; margin-bottom: 0; color: var(--muted); }
.video-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.video-actions a { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; color: var(--teal); border: 1px solid var(--teal); border-radius: 6px; font-weight: 850; }
.video-actions .video-primary-action { color: white; background: var(--teal); }

.tutorial-steps { margin-top: clamp(64px, 10vw, 110px); }
.section-heading { max-width: 640px; }
.tutorial-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 28px; background: var(--line); border: 1px solid var(--line); }
.tutorial-step-grid article { min-height: 220px; padding: 26px; background: white; }
.tutorial-step-grid span { display: inline-block; margin-bottom: 34px; color: var(--coral); font-weight: 900; }
.tutorial-step-grid p { margin-bottom: 0; color: var(--muted); font-size: 0.95rem; }

.tutorial-support { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; margin-top: clamp(64px, 10vw, 110px); padding: clamp(28px, 5vw, 52px); color: white; background: var(--teal); }
.tutorial-support p { max-width: 620px; margin-bottom: 0; color: rgba(255, 255, 255, 0.78); }
.tutorial-support .eyebrow { color: #ffc3b6; }
.support-actions { display: grid; gap: 10px; min-width: 210px; }
.support-actions a { display: flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; color: var(--teal); background: white; border-radius: 6px; font-weight: 850; }

.tutorial-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px clamp(18px, 5vw, 72px); color: var(--muted); border-top: 1px solid var(--line); }
.tutorial-footer div { display: grid; }
.tutorial-footer a { color: var(--teal); font-weight: 800; }
.tutorial-footer .tutorial-footer-links { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

@media (max-width: 820px) {
  .tutorial-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tutorial-support { grid-template-columns: 1fr; align-items: start; }
  .tutorial-video-details { grid-template-columns: 1fr; align-items: start; }
  .video-actions { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .tutorial-header { padding: 12px 16px; }
  main { width: min(100% - 28px, 1120px); padding-top: 42px; }
  .tutorial-step-grid { grid-template-columns: 1fr; }
  .tutorial-step-grid article { min-height: 180px; }
  .tutorial-footer { display: grid; }
  .video-actions { display: grid; }
  .video-actions a { width: 100%; }
}
