:root {
  color-scheme: light;
  --canvas: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --blue: #2859e8;
  --blue-hover: #1f46c8;
  --step-tint: #f3f7ff;
  --hero-title-width: 720px;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.09);
  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: 32px;
  background: var(--canvas);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.viewer-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  background: var(--canvas);
}

.brand {
  width: 172px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.platform-label {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  letter-spacing: 0;
}

.hero {
  max-width: 900px;
  padding-block: 82px 132px;
}

.eyebrow,
.step-label {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  line-height: 20px;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p,
figure,
pre {
  margin: 0;
}

h1 {
  max-width: var(--hero-title-width);
  margin-top: 16px;
  color: var(--ink);
  font-size: 60px;
  font-weight: 880;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-summary {
  max-width: 760px;
  margin-top: 28px;
  color: #344054;
  font-size: 20px;
  font-weight: 520;
  line-height: 32px;
}

.primary-action,
.secondary-action {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-inline: 24px;
  border-radius: 8px;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(40, 89, 232, 0.18);
  text-decoration: none;
  font-size: 17px;
  font-weight: 820;
  line-height: 24px;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-action {
  margin-top: 36px;
}

.secondary-action {
  min-height: 52px;
  margin-top: 6px;
  font-size: 16px;
}

.primary-action:hover,
.secondary-action:hover {
  background: var(--blue-hover);
  box-shadow: 0 14px 30px rgba(40, 89, 232, 0.22);
  transform: translateY(-1px);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.step-nav a:focus-visible,
.screenshot-trigger:focus-visible,
.viewer-close:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(40, 89, 232, 0.42);
  outline-offset: 4px;
}

code,
kbd {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 760;
  overflow-wrap: anywhere;
}

kbd {
  padding-inline: 2px;
}

.tutorial-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 88px;
  align-items: start;
  padding-block-end: 168px;
}

.tutorial-shell > *,
.tutorial-content,
.tutorial-step,
.visual-item,
.visual-item > *,
.step-heading > * {
  min-width: 0;
}

.step-nav {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 2px;
  padding-block: 4px;
  background: var(--canvas);
}

.step-nav > p {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  line-height: 20px;
}

.step-nav a {
  min-height: 40px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding-block: 8px;
  color: #7a8494;
  text-decoration: none;
  font-size: 14px;
  font-weight: 590;
  line-height: 20px;
  transition: color 140ms ease;
}

.step-nav a span:first-child {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 820;
}

.step-nav a:hover,
.step-nav a.is-active {
  color: var(--blue);
}

.step-nav a.is-active {
  font-weight: 820;
}

.tutorial-step {
  scroll-margin-block-start: 36px;
  margin-bottom: 116px;
}

.tutorial-step:last-child {
  margin-bottom: 0;
}

.step-heading {
  width: 100%;
  margin-bottom: 40px;
  padding: 24px 26px 26px;
  border-radius: 6px;
  background: var(--step-tint);
}

.step-heading h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 30px;
  font-weight: 850;
  line-height: 1.24;
  letter-spacing: 0;
}

.step-heading > p {
  display: block;
  max-width: 680px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 26px;
}

.video-tutorial {
  margin-bottom: 44px;
}

.video-heading {
  max-width: 680px;
  margin: 0 0 18px 26px;
}

.video-heading h4 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 830;
  line-height: 26px;
  letter-spacing: 0;
}

.video-heading p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 25px;
}

.tutorial-video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #111827;
  box-shadow: var(--shadow);
}

.action-list {
  max-width: 740px;
  display: grid;
  gap: 26px;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
}

.action-item h4 {
  color: var(--ink);
  font-size: 18px;
  font-weight: 830;
  line-height: 26px;
  letter-spacing: 0;
}

.action-item p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 25px;
}

.action-list + .screenshot-block {
  margin-top: 40px;
}

.notice {
  max-width: 760px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 34px;
}

.notice-important {
  margin-block: 0 48px;
}

.notice-mark {
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.notice strong {
  display: block;
  color: var(--blue);
  font-size: 16px;
  font-weight: 850;
  line-height: 24px;
}

.notice p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
  line-height: 24px;
}

.completion-copy {
  max-width: 790px;
  margin-top: 34px;
}

.completion-copy strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 820;
  line-height: 24px;
}

.completion-copy pre {
  max-width: 100%;
  margin-top: 18px;
  color: var(--blue);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.completion-copy pre code {
  font-size: 13px;
  line-height: 22px;
}

.completion-copy > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 25px;
}

.visual-sequence {
  display: grid;
  gap: 88px;
  margin-top: 48px;
}

.visual-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.visual-copy {
  padding-top: 6px;
}

.visual-copy h4 {
  color: var(--ink);
  font-size: 19px;
  font-weight: 830;
  line-height: 26px;
  letter-spacing: 0;
}

.visual-copy p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 23px;
}

.visual-copy strong,
.visual-copy b {
  color: var(--blue);
  font-weight: 850;
}

.visual-copy .inline-tip {
  margin-top: 14px;
  color: #475467;
}

.screenshot-block {
  min-width: 0;
}

.screenshot-trigger {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.screenshot-trigger:hover {
  box-shadow: 0 22px 56px rgba(17, 24, 39, 0.12);
  transform: translateY(-2px);
}

.screenshot-trigger img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--canvas);
}

.completion-message {
  max-width: 760px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-top: 48px;
}

.completion-message > span {
  color: var(--blue);
  font-size: 30px;
  font-weight: 900;
  line-height: 32px;
}

.completion-message strong {
  display: block;
  color: var(--blue);
  font-size: 22px;
  font-weight: 880;
  line-height: 30px;
}

.completion-message p {
  margin-top: 7px;
  color: #475467;
  font-size: 16px;
  line-height: 26px;
}

.site-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block-end: 64px;
}

.site-footer img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-footer p {
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
}

.image-viewer {
  width: min(94vw, 1440px);
  max-width: none;
  max-height: 94vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
}

.image-viewer::backdrop {
  background: rgba(17, 24, 39, 0.82);
}

.viewer-content {
  max-height: 90vh;
  padding: 16px;
  overflow: auto;
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
}

.viewer-content img {
  max-width: 100%;
  max-height: calc(90vh - 66px);
  display: block;
  margin-inline: auto;
  object-fit: contain;
}

.viewer-content p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

.viewer-close {
  width: 44px;
  height: 44px;
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

@media (max-width: 980px) {
  .tutorial-shell {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 48px;
  }

  .visual-item {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-block-start: 82px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: 72px;
    padding-block: 18px;
  }

  .brand {
    width: 152px;
  }

  .hero {
    padding-block: 52px 94px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-summary {
    font-size: 18px;
    line-height: 29px;
  }

  .tutorial-shell {
    display: block;
    padding-block-end: 120px;
  }

  .step-nav {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    gap: 20px;
    margin-bottom: 84px;
    padding-block: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    background: var(--canvas);
    box-shadow: 0 12px 28px rgba(255, 255, 255, 0.96);
    scrollbar-width: none;
  }

  .step-nav::-webkit-scrollbar {
    display: none;
  }

  .step-nav > p {
    display: none;
  }

  .step-nav a {
    min-height: 42px;
    flex: 0 0 auto;
    display: inline-flex;
    gap: 7px;
    padding-block: 8px;
    white-space: nowrap;
  }

  .tutorial-step {
    margin-bottom: 94px;
  }

  .visual-sequence {
    gap: 72px;
  }

  .visual-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .visual-copy {
    max-width: 620px;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 14px;
  }

  .brand {
    width: 138px;
  }

  .platform-label {
    font-size: 12px;
  }

  .hero {
    padding-block: 42px 82px;
  }

  h1 {
    margin-top: 12px;
    font-size: 36px;
    line-height: 1.12;
  }

  .hero-summary {
    margin-top: 22px;
    font-size: 17px;
    line-height: 27px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    min-height: 54px;
    padding-inline: 18px;
    font-size: 16px;
  }

  .primary-action {
    margin-top: 30px;
  }

  .step-nav {
    margin-bottom: 70px;
  }

  .tutorial-step {
    margin-bottom: 82px;
  }

  .step-heading {
    margin-bottom: 32px;
    padding: 20px 18px 22px;
  }

  .step-heading h3 {
    font-size: 26px;
    line-height: 1.25;
  }

  .step-heading > p,
  .action-item p,
  .video-heading p {
    font-size: 15px;
    line-height: 25px;
  }

  .video-tutorial {
    margin-bottom: 36px;
  }

  .video-heading {
    margin: 0 0 16px 18px;
  }

  .action-list {
    gap: 22px;
    padding-inline-start: 18px;
  }

  .visual-sequence {
    gap: 62px;
    margin-top: 42px;
  }

  .screenshot-trigger {
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.09);
  }

  .completion-copy pre code {
    font-size: 12px;
    line-height: 20px;
  }

  .site-footer {
    align-items: flex-start;
    padding-block-end: 44px;
  }

  .viewer-content {
    padding: 8px;
  }

  .viewer-close {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
