:root {
  color-scheme: light;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --tutorial-bg: #f7f7fb;
  --tutorial-ink: #16284d;
  --tutorial-muted: #53668d;
  --tutorial-accent: #433bea;
  --tutorial-accent-top: #535dff;
  --tutorial-line: rgba(39, 68, 125, 0.13);
  --tutorial-line-strong: rgba(39, 68, 125, 0.2);
  --tutorial-white: rgba(255, 255, 255, 0.94);
  --tutorial-shadow: 0 30px 80px rgba(22, 40, 77, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 9%, rgba(121, 174, 255, 0.2), transparent 27%),
    radial-gradient(circle at 82% 28%, rgba(104, 87, 255, 0.14), transparent 25%),
    linear-gradient(145deg, #ffffff 0%, #f5f8ff 38%, #f7f4ff 68%, #ffffff 100%);
  color: var(--tutorial-ink);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.tutorial-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.tutorial-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #b7c8ff 30%, #6c7cff 62%, rgba(73, 62, 232, 0.2) 100%);
  box-shadow: 0 28px 50px rgba(53, 74, 156, 0.2);
  opacity: 0.58;
  animation: tutorialOrbFloat 12s ease-in-out infinite;
}

.tutorial-orb-one {
  top: 14%;
  left: 6%;
  width: 34px;
  height: 34px;
}

.tutorial-orb-two {
  top: 48%;
  right: 5%;
  width: 52px;
  height: 52px;
  animation-delay: -4s;
}

.tutorial-orb-three {
  bottom: 12%;
  left: 12%;
  width: 24px;
  height: 24px;
  animation-delay: -8s;
}

@keyframes tutorialOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -18px, 0); }
}

.tutorial-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1240px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  border-bottom: 1px solid var(--tutorial-line);
}

.tutorial-home-link,
.tutorial-header-cta,
.tutorial-start,
.tutorial-final > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tutorial-home-link {
  justify-self: start;
  gap: 8px;
  color: rgba(22, 40, 77, 0.72);
  font-size: 0.9rem;
  font-weight: 720;
}

.tutorial-home-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.22s ease;
}

.tutorial-home-link:hover svg {
  transform: translateX(-3px);
}

.tutorial-brand {
  display: block;
  width: 190px;
}

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

.tutorial-header-cta {
  justify-self: end;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--tutorial-line-strong);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(22, 40, 77, 0.07);
  color: var(--tutorial-ink);
  font-size: 0.88rem;
  font-weight: 760;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.tutorial-header-cta:hover {
  transform: translateY(-2px);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(22, 40, 77, 0.11);
}

.tutorial-intro {
  display: grid;
  justify-items: center;
  width: min(980px, calc(100% - 48px));
  min-height: 560px;
  margin: 0 auto;
  padding: 112px 0 82px;
  text-align: center;
}

.tutorial-kicker,
.tutorial-section-label,
.tutorial-step-eyebrow,
.tutorial-final > span {
  color: var(--tutorial-accent);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tutorial-intro h1 {
  max-width: 900px;
  margin: 20px 0 18px;
  font-size: 3.8rem;
  line-height: 1.03;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

.tutorial-intro > p {
  max-width: 720px;
  margin: 0;
  color: rgba(22, 40, 77, 0.68);
  font-size: 1.12rem;
  line-height: 1.62;
  font-weight: 560;
}

.tutorial-intro-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 28px;
  color: rgba(22, 40, 77, 0.56);
  font-size: 0.82rem;
  font-weight: 700;
}

.tutorial-intro-meta span {
  position: relative;
}

.tutorial-intro-meta span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(67, 59, 234, 0.38);
}

.tutorial-start {
  gap: 12px;
  min-width: 250px;
  min-height: 56px;
  margin-top: 34px;
  padding: 0 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--tutorial-accent-top), var(--tutorial-accent));
  box-shadow: 0 20px 42px rgba(67, 59, 234, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 720;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.tutorial-start svg {
  width: 20px;
  height: 20px;
  transition: transform 0.24s ease;
}

.tutorial-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 52px rgba(67, 59, 234, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.tutorial-start:hover svg {
  transform: translateX(3px);
}

.tutorial-deck {
  position: relative;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 88px;
  scroll-margin-top: 20px;
  border-top: 1px solid var(--tutorial-line);
  border-bottom: 1px solid var(--tutorial-line);
}

.tutorial-deck-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.tutorial-deck-heading h2,
.tutorial-reference h2,
.tutorial-final h2 {
  margin: 10px 0 0;
  font-size: 2.35rem;
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: 0;
  text-wrap: balance;
}

.tutorial-deck-heading > p {
  max-width: 420px;
  margin: 0;
  color: rgba(22, 40, 77, 0.6);
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 570;
  text-align: right;
}

.tutorial-viewport {
  width: 100%;
  overflow: hidden;
  transition: height 0.54s cubic-bezier(0.22, 1, 0.36, 1);
  touch-action: pan-y;
}

.tutorial-track {
  display: flex;
  width: 100%;
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.tutorial-slide {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: minmax(300px, 0.7fr) minmax(560px, 1.3fr);
  gap: 72px;
  align-items: center;
  min-width: 0;
  min-height: 610px;
  padding: 16px 22px 30px;
  opacity: 0.24;
  transform: scale(0.965);
  transition: opacity 0.46s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.tutorial-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.tutorial-slide-copy {
  display: grid;
  justify-items: start;
}

.tutorial-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  border: 1px solid rgba(67, 59, 234, 0.16);
  border-radius: 8px;
  background: rgba(239, 240, 255, 0.86);
  color: var(--tutorial-accent);
  font-size: 0.75rem;
  font-weight: 850;
}

.tutorial-slide h3 {
  margin: 12px 0 16px;
  font-size: 2rem;
  line-height: 1.16;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

.tutorial-step-lead {
  margin: 0;
  color: rgba(22, 40, 77, 0.7);
  font-size: 1rem;
  line-height: 1.64;
  font-weight: 560;
}

.tutorial-step-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--tutorial-line);
  list-style: none;
  counter-reset: tutorial-detail;
}

.tutorial-step-list li {
  position: relative;
  padding-left: 28px;
  color: rgba(22, 40, 77, 0.78);
  font-size: 0.9rem;
  line-height: 1.52;
  font-weight: 610;
  counter-increment: tutorial-detail;
}

.tutorial-step-list li::before {
  content: counter(tutorial-detail);
  position: absolute;
  top: 1px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(67, 59, 234, 0.1);
  color: var(--tutorial-accent);
  font-size: 0.64rem;
  font-weight: 850;
}

.tutorial-shot {
  --shot-rotate-x: 2deg;
  --shot-rotate-y: -3.5deg;
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 34px 14px 18px;
  border: 1px solid rgba(39, 68, 125, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--tutorial-shadow);
  transform: perspective(1500px) rotateX(var(--shot-rotate-x)) rotateY(var(--shot-rotate-y));
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  isolation: isolate;
}

.tutorial-shot.is-reversed {
  --shot-rotate-y: 3.5deg;
}

.tutorial-shot::before,
.tutorial-shot::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.tutorial-shot::before {
  top: -30px;
  right: -22px;
  width: 74px;
  height: 74px;
  background: radial-gradient(circle at 32% 28%, #ffffff, #9eb7ff 42%, #5865f2 72%, rgba(67, 59, 234, 0.24));
  box-shadow: 0 24px 44px rgba(55, 74, 157, 0.18);
  transform: translateZ(40px);
}

.tutorial-shot::after {
  bottom: 8%;
  left: -18px;
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 34% 30%, #ffffff, #bad4ff 44%, #7188f8 74%);
  box-shadow: 0 18px 32px rgba(55, 74, 157, 0.16);
  transform: translateZ(28px);
}

.tutorial-shot-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(39, 68, 125, 0.1);
  color: rgba(22, 40, 77, 0.42);
}

.tutorial-shot-chrome span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(67, 59, 234, 0.2);
}

.tutorial-shot-chrome em {
  margin-left: auto;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 720;
}

.tutorial-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(39, 68, 125, 0.09);
  border-radius: 5px;
  background: #f4f6fb;
  transform: translateZ(18px);
}

.tutorial-controls {
  display: grid;
  grid-template-columns: 52px minmax(220px, auto) 52px;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
}

.tutorial-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--tutorial-line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 26px rgba(22, 40, 77, 0.08);
  color: var(--tutorial-ink);
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, opacity 0.22s ease;
}

.tutorial-arrow:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #ffffff;
}

.tutorial-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.tutorial-arrow svg {
  width: 22px;
  height: 22px;
}

.tutorial-progress {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 220px;
}

.tutorial-progress > span {
  color: rgba(22, 40, 77, 0.62);
  font-size: 0.78rem;
  font-weight: 760;
}

.tutorial-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tutorial-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 4px;
  padding: 0;
  background: rgba(22, 40, 77, 0.2);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.tutorial-dots button.is-active {
  width: 25px;
  background: var(--tutorial-accent);
}

.tutorial-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.tutorial-reference {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0;
  text-align: center;
}

.tutorial-reference h2 {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.tutorial-reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 58px;
  border-top: 1px solid var(--tutorial-line);
  border-bottom: 1px solid var(--tutorial-line);
  text-align: left;
}

.tutorial-reference-grid > div {
  padding: 34px 32px;
}

.tutorial-reference-grid > div + div {
  border-left: 1px solid var(--tutorial-line);
}

.tutorial-reference-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 780;
}

.tutorial-reference-grid p {
  margin: 0;
  color: rgba(22, 40, 77, 0.66);
  font-size: 0.9rem;
  line-height: 1.58;
  font-weight: 560;
}

.tutorial-final {
  display: grid;
  justify-items: center;
  width: min(960px, calc(100% - 48px));
  margin: 0 auto 96px;
  padding: 76px 44px;
  border: 1px solid rgba(39, 68, 125, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 70px rgba(22, 40, 77, 0.1);
  text-align: center;
}

.tutorial-final img {
  width: 58px;
  height: 58px;
  margin-bottom: 20px;
}

.tutorial-final p {
  max-width: 600px;
  margin: 16px 0 28px;
  color: rgba(22, 40, 77, 0.66);
  font-size: 1rem;
  line-height: 1.58;
  font-weight: 560;
}

.tutorial-final > a {
  min-width: 230px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, var(--tutorial-accent-top), var(--tutorial-accent));
  box-shadow: 0 20px 42px rgba(67, 59, 234, 0.2);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 720;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.tutorial-final > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 48px rgba(67, 59, 234, 0.24);
}

.tutorial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  border-top: 1px solid var(--tutorial-line);
  color: rgba(22, 40, 77, 0.52);
  font-size: 0.78rem;
  font-weight: 620;
}

.tutorial-footer a {
  font-weight: 760;
  text-decoration: none;
}

.tutorial-home-link:focus-visible,
.tutorial-header-cta:focus-visible,
.tutorial-start:focus-visible,
.tutorial-arrow:focus-visible,
.tutorial-dots button:focus-visible,
.tutorial-final > a:focus-visible,
.tutorial-footer a:focus-visible {
  outline: 3px solid rgba(67, 59, 234, 0.28);
  outline-offset: 4px;
}

@media (max-width: 1020px) {
  .tutorial-intro h1 {
    font-size: 3.1rem;
  }

  .tutorial-slide {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
    padding-right: 6vw;
    padding-left: 6vw;
  }

  .tutorial-slide-copy {
    max-width: 720px;
  }

  .tutorial-shot {
    width: min(860px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .tutorial-header {
    grid-template-columns: 44px 1fr auto;
    width: min(100% - 28px, 1240px);
    min-height: 74px;
  }

  .tutorial-home-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .tutorial-home-link {
    width: 42px;
    height: 42px;
  }

  .tutorial-brand {
    width: 148px;
    margin: 0 auto;
  }

  .tutorial-header-cta {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.76rem;
  }

  .tutorial-intro {
    width: min(100% - 32px, 980px);
    min-height: 520px;
    padding: 84px 0 68px;
  }

  .tutorial-intro h1 {
    margin-top: 16px;
    font-size: 2.55rem;
    line-height: 1.06;
  }

  .tutorial-intro > p {
    font-size: 1rem;
  }

  .tutorial-intro-meta {
    display: grid;
    gap: 7px;
  }

  .tutorial-intro-meta span + span::before {
    content: none;
  }

  .tutorial-deck {
    width: min(100% - 24px, 1280px);
    padding: 56px 0 70px;
  }

  .tutorial-deck-heading {
    display: grid;
    gap: 18px;
    margin-right: 12px;
    margin-bottom: 32px;
    margin-left: 12px;
  }

  .tutorial-deck-heading h2,
  .tutorial-reference h2,
  .tutorial-final h2 {
    font-size: 2rem;
  }

  .tutorial-deck-heading > p {
    text-align: left;
  }

  .tutorial-slide {
    gap: 36px;
    padding: 10px 12px 28px;
  }

  .tutorial-slide h3 {
    font-size: 1.75rem;
  }

  .tutorial-shot {
    --shot-rotate-x: 1deg;
    --shot-rotate-y: -1deg;
    padding: 28px 7px 9px;
  }

  .tutorial-shot.is-reversed {
    --shot-rotate-y: 1deg;
  }

  .tutorial-shot-chrome {
    height: 28px;
    padding: 0 8px;
  }

  .tutorial-shot-chrome em {
    display: none;
  }

  .tutorial-shot::before {
    top: -20px;
    right: -7px;
    width: 48px;
    height: 48px;
  }

  .tutorial-shot::after {
    left: -5px;
    width: 26px;
    height: 26px;
  }

  .tutorial-controls {
    grid-template-columns: 46px minmax(150px, 1fr) 46px;
    gap: 10px;
    padding: 0 8px;
  }

  .tutorial-arrow {
    width: 46px;
    height: 46px;
  }

  .tutorial-progress {
    min-width: 0;
  }

  .tutorial-reference {
    width: min(100% - 32px, 1120px);
    padding: 84px 0;
  }

  .tutorial-reference-grid {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .tutorial-reference-grid > div {
    padding: 28px 6px;
  }

  .tutorial-reference-grid > div + div {
    border-top: 1px solid var(--tutorial-line);
    border-left: 0;
  }

  .tutorial-final {
    width: min(100% - 32px, 960px);
    margin-bottom: 64px;
    padding: 58px 22px;
  }

  .tutorial-footer {
    display: grid;
    justify-items: center;
    width: min(100% - 32px, 1240px);
    padding: 26px 0;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .tutorial-header-cta {
    max-width: 98px;
    text-align: center;
  }

  .tutorial-brand {
    width: 128px;
  }

  .tutorial-intro h1 {
    font-size: 2.18rem;
  }

  .tutorial-start {
    width: 100%;
    min-width: 0;
  }

  .tutorial-dots {
    gap: 5px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
