.home-video-guides {
  grid-column: 1 / -1;
  min-width: 0;
  padding-top: clamp(26px, 4vw, 40px);
  border-top: 1px solid rgb(119 112 155 / 22%);
}
.home-video-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.home-video-heading .eyebrow { margin-bottom: 8px; }
.landing-page .home-video-heading h3 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.1; letter-spacing: -.035em; }
.home-video-heading > p { max-width: 310px; margin: 0 0 3px; font-size: .88rem; line-height: 1.6; }
.home-video-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 30px; margin: 0; padding: 0; list-style: none; }
.home-video-steps li { position: relative; min-width: 0; margin: 0; }
.home-video-steps li:not(:last-child)::before,
.home-video-steps li:not(:last-child)::after {
  content: ""; position: absolute; z-index: 1; color: #8054a4; pointer-events: none;
}
.home-video-steps li:not(:last-child)::before {
  top: calc(50% - 2px); right: -26px; width: 22px; height: 4px; border-radius: 4px;
  background: currentColor; animation: home-video-arrow-line 2.6s ease-in-out infinite;
}
.home-video-steps li:not(:last-child)::after {
  top: calc(50% - 6px); right: -25px; width: 11px; height: 11px;
  border-top: 4px solid currentColor; border-right: 4px solid currentColor; border-radius: 2px;
  animation: home-video-arrow-head 2.6s ease-in-out infinite;
}
.home-video-steps li:nth-child(2)::before,.home-video-steps li:nth-child(2)::after { animation-delay: .25s; }
.home-video-steps li:nth-child(3)::before,.home-video-steps li:nth-child(3)::after { animation-delay: .5s; }
.home-video-steps li:nth-child(4)::before,.home-video-steps li:nth-child(4)::after { animation-delay: .75s; }
.home-video-card {
  --guide-ink: #8054a4; --guide-paper: 239 227 251;
  display: flex; position: relative; flex-direction: column; align-items: center;
  box-sizing: border-box; min-width: 0; min-height: 242px; height: 100%; padding: 18px 12px;
  border: 1.5px solid rgb(255 255 255 / 80%); border-radius: 24px;
  color: #33254a; text-align: center; text-decoration: none;
  background: linear-gradient(155deg, rgb(255 255 255 / 38%), rgb(var(--guide-paper) / 24%));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 9px 24px rgb(71 86 120 / 9%);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.home-video-steps li:nth-child(2) .home-video-card,.home-guide-list li:nth-child(3) .home-video-card { --guide-ink: #307b9a; --guide-paper: 219 240 251; }
.home-video-steps li:nth-child(3) .home-video-card,.home-guide-list li:nth-child(4) .home-video-card { --guide-ink: #aa4f78; --guide-paper: 249 227 239; }
.home-video-steps li:nth-child(4) .home-video-card,.home-guide-list li:nth-child(5) .home-video-card { --guide-ink: #347c66; --guide-paper: 223 243 233; }
.home-video-steps li:nth-child(5) .home-video-card,.home-guide-list li:nth-child(6) .home-video-card { --guide-ink: #9d6442; --guide-paper: 251 235 220; }
.home-video-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgb(71 86 120 / 15%); background: rgb(255 255 255 / 57%); }
.home-video-card:focus-visible,.home-video-library:focus-visible,.home-video-dialog a:focus-visible,.home-video-close:focus-visible,.home-guide-tutorial:focus-visible { outline: 3px solid #8054a4; outline-offset: 4px; }
.home-video-number { align-self: flex-start; color: var(--guide-ink); font-size: .8rem; font-weight: 900; letter-spacing: .02em; }
.home-video-icon { position: relative; display: grid; place-items: center; flex-shrink: 0; width: 76px; height: 60px; margin: 12px 0 15px; color: var(--guide-ink); }
.home-video-icon::before { content: ""; position: absolute; inset: 6px 2px; border: 2px solid currentColor; border-radius: 18px; opacity: 0; animation: home-video-pulse 3.6s ease-out infinite; }
.home-video-icon svg { display: block; width: 76px; height: 57px; overflow: visible; animation: home-video-float 3.6s ease-in-out infinite; }
.home-video-screen { fill: currentColor; stroke: rgb(255 255 255 / 85%); stroke-width: 1.2; }
.home-video-play { fill: #fff; stroke: none; }
.home-video-card .home-video-label { font-family: "Nunito Rounded", system-ui, sans-serif; font-size: 1.04rem; font-weight: 900; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: break-word; }
.home-video-watch { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 14px; color: var(--guide-ink); font-size: .76rem; font-weight: 900; }
.home-video-library { display: table; margin: 20px auto 0; color: #67438d; font-size: .84rem; font-weight: 800; text-underline-offset: 4px; }
.home-video-modal-open,.home-guide-library-open { overflow: hidden; }
.home-video-dialog,.home-guide-library {
  box-sizing: border-box; width: min(660px, calc(100% - 24px)); max-width: none;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto;
  padding: 18px; border: 1px solid #eadcf3; border-radius: 24px; color: #33254a;
  background: #fffdfb; box-shadow: 0 24px 90px rgb(32 16 53 / 30%);
  font-family: "Nunito Rounded", system-ui, sans-serif;
}
.home-video-dialog::backdrop,.home-guide-library::backdrop { background: rgb(31 20 48 / 72%); backdrop-filter: blur(5px); }
.home-video-dialog-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.home-video-dialog .home-video-dialog-heading h2,.home-guide-library .home-video-dialog-heading h2 { flex: 1; margin: 0; font-size: clamp(1.1rem, 3vw, 1.5rem); font-weight: 900; letter-spacing: -.02em; line-height: 1.25; }
.home-video-close { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #67438d; background: #f0e7f8; font-size: 27px; line-height: 1; cursor: pointer; }
.home-video-dialog video { display: block; width: 100%; max-height: 70vh; max-height: 70dvh; min-height: 160px; border-radius: 14px; background: #21192d; object-fit: contain; }
.home-video-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: .77rem; }
.home-video-dialog .home-video-dialog-footer p { margin: 0; }
.home-video-dialog-footer a { color: #67438d; font-weight: 800; white-space: nowrap; }
.home-video-dialog .home-video-error { margin: 14px 0 0; padding: 12px; border-radius: 12px; color: #73421e; background: #fff0dc; font-size: .85rem; line-height: 1.5; }
.home-video-error[hidden] { display: none; }
.home-guide-library { width: min(760px, calc(100% - 24px)); background: linear-gradient(145deg, #f8f0fc, #eef8f5); }
.home-guide-intro { margin: 0 0 18px; font-size: .9rem; line-height: 1.5; }
.home-guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.home-guide-list li { min-width: 0; margin: 0; }
.home-guide-first { grid-column: 1 / -1; }
.home-guide-tutorial { display: flex; flex-direction: column; gap: 9px; padding: 20px; border: 1.5px solid #cdb9df; border-radius: 20px; color: #3a2853; background: rgb(255 255 255 / 64%); text-align: left; text-decoration: none; }
.home-guide-tutorial strong { font-size: 1.15rem; font-weight: 900; line-height: 1.3; }
.home-guide-badge { width: fit-content; padding: 4px 9px; border-radius: 20px; color: #67438d; background: #ebdef6; font-size: .74rem; font-weight: 900; }
.home-guide-description { font-size: .85rem; line-height: 1.5; }
.home-guide-start { color: #67438d; font-size: .85rem; font-weight: 900; }
.home-guide-list .home-video-card { min-height: 0; padding: 14px; }
.home-guide-list .home-video-icon { margin-block: 5px; width: 62px; height: 48px; }
.home-guide-list .home-video-icon svg { width: 62px; height: 46px; }
.home-guide-list .home-video-label { font-size: .95rem; }
@keyframes home-video-arrow-line { 0%,100% { transform: translateX(-2px); opacity: .6; } 50% { transform: translateX(2px); opacity: 1; } }
@keyframes home-video-arrow-head { 0%,100% { transform: translateX(-2px) rotate(45deg); opacity: .6; } 50% { transform: translateX(2px) rotate(45deg); opacity: 1; } }
@keyframes home-video-pulse { 0%,75%,100% { transform: scale(1); opacity: 0; } 15% { opacity: .35; } 65% { transform: scale(1.2); opacity: 0; } }
@keyframes home-video-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (max-width: 1000px) {
  .home-video-steps { gap: 25px; }
  .home-video-card { padding-inline: 9px; }
  .home-video-card .home-video-label { font-size: .94rem; }
  .home-video-steps li:not(:last-child)::before { right: -23px; width: 20px; }
  .home-video-steps li:not(:last-child)::after { right: -22px; }
}
@media (max-width: 700px) {
  .home-video-heading { display: block; }
  .home-video-heading > p { max-width: none; margin-top: 12px; }
  .home-video-steps { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .home-video-steps .home-video-card { display: grid; grid-template-columns: 76px minmax(0, 1fr); column-gap: 18px; min-height: 128px; padding: 16px 20px; text-align: left; }
  .home-video-steps .home-video-icon { grid-column: 1; grid-row: 1 / 4; margin: 0; }
  .home-video-steps .home-video-number,.home-video-steps .home-video-label,.home-video-steps .home-video-watch { grid-column: 2; }
  .home-video-steps .home-video-label { font-size: 1.05rem; }
  .home-video-steps .home-video-watch { margin-top: 0; padding-top: 6px; }
  .home-video-steps li:not(:last-child)::before { top: auto; bottom: -25px; left: calc(50% - 2px); right: auto; width: 4px; height: 20px; animation-name: home-video-arrow-down-line; }
  .home-video-steps li:not(:last-child)::after { top: auto; bottom: -25px; left: calc(50% - 5.5px); right: auto; animation-name: home-video-arrow-down-head; }
  .home-video-dialog,.home-guide-library { padding: 14px; border-radius: 20px; }
}
@keyframes home-video-arrow-down-line { 0%,100% { transform: translateY(-2px); opacity: .6; } 50% { transform: translateY(2px); opacity: 1; } }
@keyframes home-video-arrow-down-head { 0%,100% { transform: translateY(-2px) rotate(135deg); opacity: .6; } 50% { transform: translateY(2px) rotate(135deg); opacity: 1; } }
@media (max-width: 400px) {
  .home-guide-list { grid-template-columns: minmax(0, 1fr); }
  .home-video-steps .home-video-card { padding: 14px; column-gap: 12px; }
  .home-video-dialog-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .home-video-steps li::before,.home-video-steps li::after,.home-video-icon::before,.home-video-icon svg { animation: none !important; }
  .home-video-icon::before { display: none; }
  .home-video-card { transition: none; }
  .home-video-card:hover { transform: none; }
}

.home-guide-video-list > li:nth-child(2) .home-video-card { --guide-ink: #307b9a; --guide-paper: 219 240 251; }
.home-guide-video-list > li:nth-child(3) .home-video-card { --guide-ink: #aa4f78; --guide-paper: 249 227 239; }
.home-guide-video-list > li:nth-child(4) .home-video-card { --guide-ink: #347c66; --guide-paper: 223 243 233; }
.home-guide-video-list > li:nth-child(5) .home-video-card { --guide-ink: #9d6442; --guide-paper: 251 235 220; }
